Copy the code below to the .env file and fill in all required variables. 👇
# define development or production ( default is development )
# If you are deploying for production, set this to production
STATUS=
# Default port is 3000.
# Define the port here if you want to change that.
PORT=
MONGODB_URL=
# Enter your frontend application url here (only if you have frontend)
FRONTEND_URL=
# You can generate a secret by running this command in the terminal:
# "node -e "console.log(require('crypto').randomBytes(32).toString('hex'))".
JWT_ACCESS_SECRET=
JWT_REFRESH_SECRET=
# Token expire times, ex = 30s 1m 10m 1d 30d
ACCESS_TOKEN_EXPIRE_TIME=
REFRESH_TOKEN_EXPIRE_TIME=
# Max Api access per ip for 1 minute,
# Default limit is 100, set limit here if you want to overide
MAX_API_REQUEST_PER_IP_FOR_MINUTE=
# Smtp Details for email features
HOST=
EPORT=
USER=
PASSWORD=
6. Start the server
npm start