- open console and go to the directory of your file
- write "npm install" and then enter
- create .env file in the root folder of the directory and add your value as DATABASE_PASS={your database password}, MONGO_USER={your mongodb user name}, MONGO_DATABASE={your db name}, JWTSECRETKEY={your jwt secret}
- and then write "npm start" and then enter, it will start the server on port 8000.
npx mocha .\test\api_test.js