- Clone the project to your computer.
- Run
npm installornpm ito install the relevant module dependecies required for the program to run. - To run the program on development, use the command
npm run dev.
- Feel free to contact me to get the database password, API_PORT and token key.
Non protected routes
When testing on postman, include this key-value pair in the headers:
Content-Type: application/json
register: Registers a user to the carpark availability checking system [POST]login: Authenticates and logs the user into the account [POST]
Protected routes
When testing on postman, include this key-value pair in the headers: x-access-token: $token
viewMemberDetails: View current user's details [GET]carparkDetails: Returns carpark availability based on current timestamp [GET]
To test any of the endpoints above, install postman on your desktop.