Coder Social home page Coder Social logo

deno-server's Introduction

A back-end framework written in Deno

I tried Deno for the first time, and then used the oak framework, because the oak framework is similar to koa, and koa is the one I have used, so I chose oak

Breakpoint

I think breakpoint debugging is an indispensable means to solve program running errors, and then through research, it is found that it is an official problem of VScode, which has been troubled for a long time, and finally solved However, there are still some minor problems. Compared with nodemon, denon is only suitable for hot restart. When debugging, denon appears to be inferior.

-Give my solution

VSCode configuration

  1. Automatically hit the break point
    {
      "name": "Deno-debugger",
      "type": "pwa-node",
      "request": "launch",
      "cwd": "${workspaceFolder}",
      "runtimeExecutable": "deno",
      "runtimeArgs": ["run", "--inspect", "-A", "--unstable", "app.ts"],
      "attachSimplePort": 9229,
      "console": "integratedTerminal"
    }
  1. Hit the breakpoint manually (debugging in deno is more recommended)

Start deno debugger first, then start Deno Attach

    {
      "name": "Deno (Attach)",
      "type": "node",
      "request": "attach",
      "port": 9229
    },
    {
      "name": "Deno-debugger",
      "type": "node",
      "request": "launch",
      "cwd": "${workspaceFolder}",
      "runtimeExecutable": "deno",
      "runtimeArgs": ["run", "--inspect", "-A", "--unstable", "app.ts"],
      "port": 9229,
      "console": "integratedTerminal"
    }

start up

Denon is a hot restart library similar to nodemon.

-denon start (recommended)

 denon start

-deno start

deno run -A --importmap=importmap.json --unstable app.ts

completed

-logger middleware -Route automatically loaded -Global exception handling

TODO

-Parameter verification -Simplify the representation method of the returned data ctx.response.body => ctx.json -JWT token integration -MySQL integration

  • and many more

deno-server's People

Contributors

mwoodpatrick avatar towelong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.