Table of Contents :1. Pre-Requisites
2. Add Dotenv File
3. Install Modules
4. Run Project
5. Test Project
The following tools are need to be pre-install on your system
Add .env
file to your root folder and then add required valiables as mention below into this file.
SECRET_KEY=<your_secret_key_to_generate_jwt_tokens_of_32_chars_in_length>
DB_CONN_STR=<your_mongodb_connection_string>
E.g.
SECRET_KEY=mynameissaurabhsunilkhairethecreator
DB_CONN_STR=mongodb://localhost:27017/employeeDB
Run the below command to install the required modules into this project.
> npm i
Run the below command to run this project
> npm run start
OR
Run the below command to run this project with nodemon
> npm run dev
Test this project at your browser with below address and port number: