Run npm install
on server directory to install the packages.
Add these lines to your .env
file:
MONGODB_URI = {insert your mongobd uri}
TOKEN_SECRET = {insert your token secret}
Run npm run data:import
to import dummy data into the database.
Run npm run dev
to start the server and connect the database.
Run npm run test
to start testing api routes.