https://github.com/v-checha/deno-starter-kit
This generator will help you to build your own Deno Mongodb API using TypeScript
https://github.com/v-checha/deno-starter-kit
crud deno generator rest starter typescript
Last synced: about 1 year ago
JSON representation
This generator will help you to build your own Deno Mongodb API using TypeScript
- Host: GitHub
- URL: https://github.com/v-checha/deno-starter-kit
- Owner: v-checha
- License: mit
- Created: 2020-05-28T08:55:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T07:15:01.000Z (over 3 years ago)
- Last Synced: 2025-04-08T10:52:25.173Z (about 1 year ago)
- Topics: crud, deno, generator, rest, starter, typescript
- Language: TypeScript
- Size: 1.39 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# generator-deno-starter-kit




> 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](http://yeoman.io) and generator-deno-starter-kit using [npm](https://www.npmjs.com/) (we assume you have pre-installed [node.js](https://nodejs.org/)).
```bash
npm install -g yo
npm install -g generator-deno-starter-kit
```
Then generate your new project:
```bash
yo deno-starter-kit
```
Second, install [Deno](https://deno.land/#installation)
Homebrew (Mac)
```bash
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:
```bash
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](http://yeoman.io/).
## License
MIT © [chechavalerii](https://github.com/ChechaValerii/)
[npm-image]: https://badge.fury.io/js/generator-deno-starter-kit.svg
[npm-url]: https://npmjs.org/package/generator-deno-starter-kit
[travis-image]: https://travis-ci.com/ChechaValerii/generator-deno-starter-kit.svg?branch=master
[travis-url]: https://travis-ci.com/ChechaValerii/generator-deno-starter-kit
[daviddm-image]: https://david-dm.org/ChechaValerii/generator-deno-starter-kit.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/ChechaValerii/generator-deno-starter-kit