- Run
npm install
from the root - run
npm run server:dev
from the root
You can create a .env file in your root project folder and add theses configurations. Be sure to modify the values beforehand. Never commit .env file to github.
PORT=5000
NODE_ENV = development
MONGO_URI = <YOUR_MONGO_URI> (Only if you use a hosted database)
JWT_SECRET= <JWT_SECRET>
JWT_EXPIRES_IN=<JWT_EXPIRATION_DATE> (Ex : 90d )
COOKIE_EXPIRES_IN = <COOKIE_EXPIRATION_Date> (Ex : 90)
//For MailTrap. You will need to create a MailTrap account
EMAIL_HOST=smtp.mailtrap.io
EMAIL_PORT=2525
EMAIL_USERNAME=<YOUR_MAILTRAP_EMAIL_USERNAME>
EMAIL_PASSWORD=<YOUR_MAILTRAP_EMAIL_Password>
To Import Data Run npm run import-data
To Delete Data Run npm run delete-data