You are looking at boilerplate which you can use to start developing your REST API much faster. Under the hood it uses Nest which is famous by its agnosticism principles. This is a great advantage of this framework, since you can use any technologies with it. But if the list of technologies listed bellow matches your needs (or you simply not sure), it could be a great idea to check your ideas using this boilerplate. It can save you a lot of time for initial configuration and research.
This repository was built completely online, you can watch the videos here:
- Part I: https://www.youtube.com/watch?v=JhkwPVQ65p8 (Idea, starting with Nest and Postgres)
- Part II: https://www.youtube.com/watch?v=qH-AlGOOY-o (Generating CRUD API by DB structure)
- Part III: https://www.youtube.com/watch?v=5o0RRcmP9M0 (Validation and autogenerated docs)
- Part IV: https://www.youtube.com/watch?v=Yhu6jwhJQjk (Seeder to fill DB with random data)
It's a boilerplate for Nest.js with pre-configured typeorm module, migrations and seeders
First it has Nest under the hood which gives you a lot of possibilities to extend, modify, replace technologies and so on. It's super flexible.
Nest itself gives you a great way to build REST API. Following technologies solve the common problems which you face after starting developing of your app.
In this repo you will find docker-compose file which allows you to run postgres as database.
... TBD
... TBD
... TBD
... TBD
In this project you will find some modules which are here for example purposes. They demonstrate example how you can start REST API for an online shop.
... TBC
Entities:
- products
- name
- description
- price
- users
- admins
- buyers
- order
- statuses
- buyer
$ npm install
# start database
$ docker-compose db
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
Nest is MIT licensed.