Skip to content

AbogeJr/ChapChap

Repository files navigation

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:

Python 3.7 or later
PostgreSQL

Getting Started

  1. Clone the Repository

    git clone git@github.com:AbogeJr/ChapChap.git
  2. Create a virtual environment in the project directory

    cd ChapChap
    python -m venv env
  3. Activate Virtual Environment:

    On Windows:

    .\env\Scripts\activate

    On Unix or MacOS:

    source ./env/bin/activate
  4. Install the dependencies

    pip install -r requirements.txt
    
  5. Configure PostgreSQL Database: Create a PostgreSQL database and populate your database credentials in the .env file i.e

    DB_USER=[username]
    DB_HOST=[hostname]
    DB_PASSWORD=[password]
    DB_NAME=[database_name]
  6. Run this command to update the databse schema

    python init_db.py
  7. Run the api

    uvicorn main:app --reload
    

    The API will be accessible at http://127.0.0.1:8000

Screenshot 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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages