- Run up docker container,command:
docker-compose up -d
-
Checkout postman folder and there is a file(api-collection.json),please import the file to postman app.
-
You could test API in postman manually.
DB_HOST=localhost
DB_PORT=3306
DB_USER=user
DB_PASSWORD=password
DB_DATABASE=thundercore
JWT_SECRET=thundercore
MAX_CLAIM_SEASON=1
- Only POST /managers, POST /manager/login no needs to do API authentication.
- Suggest test the API by the sequence in /postman/api-collection.
- Please add managers and users by calling API first.
- There is a cronjob run in the backround to do a auto task for the exam operation.
- The system also consider phantom READ problems when running SQL query.
- JWT token will be expired in one day.