Before running and testing API, run npm install to install all node modules, and npm run gen:DB to generate new db file after clearing data in persistance db.
Run npm run dev:server for a 💻 dev server. Navigate to http://localhost:3000/explore for 📖 API documentation. The API will automatically reload if you change any of the source files.
To enable mail sending function, add mialGun domain name and api key to dev environment in server/env/.env.dev
apiKey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
domain=sandboxXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.mailgun.org
adminEmail=test@example.com
Run npm run test:server for a 💻 test server, then for unit test run below commands:
npm run test:unitto run unit testnpm run test:coverageto run test coverage
