This generator will help you to build your own Deno Mongodb API using TypeScript
MIT License
This generator will help you to build your own Deno Mongodb API using TypeScript
This generator will help you to build your own Deno, TypeScript.
First, install Yeoman and generator-deno-starter-kit using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-deno-starter-kit
Then generate your new project:
yo deno-starter-kit
Second, install Deno Homebrew (Mac)
brew install deno
.
├── components
│ ├── books
│ │ ├── books.controller.ts
│ │ ├── books.module.ts
│ │ └── books.router.ts
│ │
│ ├── users
│ │ ├── users.controller.ts
│ │ ├── users.module.ts
│ │ └── users.router.ts
│ │
│ └─── index.ts
├── config
│ └── middleware.ts
└── server.ts
To start the application in development mode, run:
deno run --allow-net --allow-env server.ts
curl --location --request GET 'http://localhost:4000/books'
curl --location --request GET 'http://localhost:4000/user'
curl --location --request GET 'http://localhost:4000/notfound'
MIT © chechavalerii