This is a case return management system developed using flaskrestfull.
- Admin
- Normal user
The development environment uses postgres db, hence install postgres before proceeding.
- Mac OS - brew install postgresql
- linux - sudo apt-get install postgresql postgresql-contrib
- windows - Download postgres here
Once installed create a database named case-mag
(for linux and mac OS users)
- type
psql
in terminal. - On postgres interactive interface, type
CREATE DATABASE case-mag;
- Grant privileges to the user by typing
GRANT ALL ON DATABASE case-mag to <your-postgres-username>;
- Clone the project
- create a virtual environment using virtualenv.
- Install the dependencies -
pip install -r requirements.txt
.
- flask restfull
- postgres--basic sql
- PyJWT-jwt token
- flask-restplus
flask db_migrate
flask db_drop
flask seed_admin
.env
url_pref http://127.0.0.1:5000 then.
Sign_in-->/auth/register
UserLogin-->/auth/login
Logout-->/auth/logout
Verify_user-->/admin/verify/user
AddStaff-->/admin/staff/add
Staff_CRUD-->/admin/staff/add/<pj_no>
CaseView-->/cases/returns
SpecificCase-->/cases/returns/specific
Specific_case_range-->/cases/returns/specific/range
PendingCases-->/cases/returns/specific/pending
Stephen Gumba