Skip to content

This is a profit sharing system.The service is running on a cron job but also has restful API.

Notifications You must be signed in to change notification settings

m24927605/profit-sharing-system

Repository files navigation

Profit Sharing System

Step

  1. Run up docker container,command:
docker-compose up -d
  1. Checkout postman folder and there is a file(api-collection.json),please import the file to postman app.

  2. You could test API in postman manually.

Configuration

.env example

DB_HOST=localhost
DB_PORT=3306
DB_USER=user
DB_PASSWORD=password
DB_DATABASE=thundercore
JWT_SECRET=thundercore
MAX_CLAIM_SEASON=1

API Features

  1. Only POST /managers, POST /manager/login no needs to do API authentication.
  2. Suggest test the API by the sequence in /postman/api-collection.
  3. Please add managers and users by calling API first.
  4. There is a cronjob run in the backround to do a auto task for the exam operation.
  5. The system also consider phantom READ problems when running SQL query.
  6. JWT token will be expired in one day.

About

This is a profit sharing system.The service is running on a cron job but also has restful API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages