nest-api-starter - a starter api built using nest.js
This tiny repo is a starter kit for people getting started with Nest.js.
Hope it gives you a practical walkthrough of some of the concepts of Nest.js.
Built using
How to setup
Project setup
git clone https://github.com/SouravInsights/nest-api-starter.git
cd nest-api-starter
yarn install
yarn dev
DB setup
-
MongoDB installation
- install Mongodb Community Server and refer to how to download and setup mongodb guide for more information.
-
Local setup
- create data/db directory in any of your drive where mongodb will store all the data
cd F:\
md "\data\db"
- run
mongod --dbpath "F:/data/db"
to start mongodb
- create data/db directory in any of your drive where mongodb will store all the data
-
Create your database
- run
use nest-api-db
which will craete your database, if the database doesn’t exist already
- run
-
MongoDB Compass installation
- you can also install mongodb compass as the gui for mongodb
- open mongodb compass, connect to your local mongodb server and create your database from the gui
Project structure
(to be added)