0.1.0 • Published 4 years ago

generator-deno-starter-kit v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

generator-deno-starter-kit

CircleCI branch npm Plugin on redmine.org onix

This generator will help you to build your own Deno Mongodb API using TypeScript

Description

This generator will help you to build your own Deno, TypeScript.

Installation

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

Requirements

  • deno >= 1
  • typescript >= 3.4

App skeleton

.
├── 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

Development

To start the application in development mode, run:

deno run --allow-net --allow-env server.ts

Example CRUD

curl --location --request GET 'http://localhost:4000/books'
curl --location --request GET 'http://localhost:4000/user'
curl --location --request GET 'http://localhost:4000/notfound'

Getting To Know Yeoman

  • Yeoman has a heart of gold.
  • Yeoman is a person with feelings and opinions, but is very easy to work with.
  • Yeoman can be too opinionated at times but is easily convinced not to be.
  • Feel free to learn more about Yeoman.

License

MIT © chechavalerii