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

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employee Management API

pylint workflow

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
# Host Config
HOST='0.0.0.0'
PORT=80
ENV='production'
DEBUG=False

# Database Config
SQLALCHEMY_DATABASE_URI_DEV='mysql://username:password@address/database_name'
SQLALCHEMY_TRACK_MODIFICATIONS=False

# Auth Config
JWT_SECRET_KEY='some_jwt_secret_key'

# Routes Config
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