ChapChap FastFood API
- Web
- Python
- Backend
- Personal
- API
ChapChap Fastfood API
This is my capstone project for ALX Software Engineering Backend Specializtion. It is a FastAPI-based RESTful API with SQLAlchemy as the ORM and PostgreSQL as the database engine. It allows management of users, orders, food items, and deliveries.
Prerequisites
Before running the API, ensure you have the following installed:
Getting Started
- Clone the Repository
git clone git@github.com:AbogeJr/ChapChap.gitcopy
- Create a virtual environment in the project directory
cd ChapChapcopy
python -m venv envcopy
-
Activate Virtual Environment:
On Windows:
.\env\Scripts\activatecopy
On Linux or MacOS:
source ./env/bin/activatecopy
- Install the dependencies
pip install -r requirements.txtcopy
-
Configure PostgreSQL Database: Create a PostgreSQL database and populate your database credentials in the .env file i.e
-
Run this command to update the databse schema
python init_db.pycopy
- Run the api
uvicorn main:app --reloadcopy
The API will be accessible at http://127.0.0.1:8000
The API documentation will be available at http://127.0.0.1:8000/docs
Register a user at http://127.0.0.1:8000/docs/auth/signup, authenticate and Enjoy!
Happy Hacking!