Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nodeteamdev/deno-starter-kit
This generator will help you to build your own Deno Mongodb API using TypeScript
https://github.com/nodeteamdev/deno-starter-kit
crud deno generator rest starter typescript
Last synced: 3 months ago
JSON representation
This generator will help you to build your own Deno Mongodb API using TypeScript
- Host: GitHub
- URL: https://github.com/nodeteamdev/deno-starter-kit
- Owner: nodeteamdev
- License: mit
- Created: 2020-05-28T08:55:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T07:15:01.000Z (about 2 years ago)
- Last Synced: 2024-10-10T01:03:46.082Z (4 months 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
![CircleCI branch](https://img.shields.io/circleci/project/github/RedSparr0w/node-csgo-parser/master.svg?style=flat-square)
![npm](https://img.shields.io/npm/dm/localeval.svg?style=flat-square)
![Plugin on redmine.org](https://img.shields.io/redmine/plugin/stars/redmine_xlsx_format_issue_exporter.svg?style=flat-square)
![onix](https://img.shields.io/badge/onix-systems-blue.svg)> 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