- Clone the repository with git clone
- Run npm install
- Run cp .env.example .env for create .env file
- Import db.sql database
- Edit database credentials .env file
- Run npm run dev for start server
Serve run http://localhost:8080
GET
api/welcome
POST
api/login
POST
api/registerPOST
api/account-verificationPOST
api/account-verification-resend
POST
api/password/forgotPOST
api/password/forgot-code-matchPOST
api/password/reset
GET
api/usersPUT
api/users/:id/toggle-status
Following status codes in its API:
Status Code | Description |
---|---|
2xx Success |
|
200 | Success |
201 | Created |
4xx Client Error |
|
400 | Bad Request |
401 | Unauthorized |
404 | Not Found |
5xx Server Error |
|
500 | Internal Server Error |