Backend Development

Getting Started

1) clone the repository

git clone https://github.com/mohsinogen/backend-development.git

2) go into any sesssion

cd session1

3) install nodemon

npm install nodemon

4) in project's package.json file add below line in the scripts

"start": "nodemon index.js"

5) run the below command to install any required dependency

npm install

6) run the below command to run the project

npm start

Packages

express - web framework

cors - to enable CORS with various options

dotenv - to read env variables from .env file

express-async-handler - to handle async function inside express

morgan - to maintain logs of http requests

colors - to print console.log in color

multer - to handle files

jsonwebtoken - to sign and verify JWT token

mongoose - to connect with MongoDB database