This project is coded using Python, FastAPI, PostgreSQL
- Python 3.12+
- Django 4.0
- PostgreSQL 16
- User Authentication System implemented with JWT (Bearer) both access and refresh included
- Oder operations for customer, staff and control logically
Please follow the following steps:
git clone https://github.com/phyodev/CRM.git
cd pizza-delivery-api/
python -m venv venv
source /venv/bin/activate # activate the virtual environment
pip install -r requirements.txt
- database username
- database password
- database name
from sqlalchemy import create_engine
from sqlalchemy.orm import declarative_base, sessionmaker
engine = create_engine(
"postgresql://[db_username]:[db_password]@localhost/[db_name]",
echo=True,
)
Base = declarative_base()
Session = sessionmaker()
Run init_db.py by following command for creating tables for models
python init_db.py
Run the project and start using
fastapi dev main.py