Skip to content

👔API for managing and controlling employees schedules

Notifications You must be signed in to change notification settings

volt1c/employee_management_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instruction

1. Install Packages

$ pip install -r requirements.txt

2. Create database

3. Correct environment variables file

Set your database URI and jwt secret key

# .env
SQLALCHEMY_DATABASE_URI_DEV='mysql://username:password@address/database_name'
SQLALCHEMY_TRACK_MODIFICATIONS=False
JWT_SECRET_KEY='some_jwt_secret_key'
JSON_SORT_KEYS=False
ROUTE_ADMIN_REGISTRATION=True

4. Run application

5. Register Admins

Send new admin to <your_url>/api/auth/register

{
  "username": "<username>",
  "password": "<password>",	  
  "email": "<email>"
}

6. Disable admins registration

# .env
...
ROUTE_ADMIN_REGISTRATION=False

7. Restart application

About

👔API for managing and controlling employees schedules

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published