Closed adarshjp closed 2 years ago
Three separate environments are created namely production, testing, development
Commands to start the server in the different environments are given below
npm run dev
npm test
npm start
Earlier nodemon/node index.js/npx nodemonwas used to start server
nodemon/node index.js/npx nodemon
From now, npm run dev must be used
Three different databases must be created as per sample env file
git commit
FYI Email Guide
Multiple Environments
Three separate environments are created namely production, testing, development
Commands to Start Server
Commands to start the server in the different environments are given below
npm run dev
npm test
npm start
Earlier
nodemon/node index.js/npx nodemon
was used to start serverFrom now,
npm run dev
must be usedDifferent Databases
Three different databases must be created as per sample env file
Pre-commit hook
git commit
it will run the tests