The hosted version of this API is available here: https://hngstagetwo-wpel.onrender.com, However, if you would like to run this on your local machine, follow the guide below.
-
Python: This project is built with FastAPI which is a python framework. Run this command
python --version
to check if you have Python installed on your machine. If you dont have python, download and install Python on your machine here: https://www.python.org/downloads/. -
Database: PostgreSQL was used for this project. If you don't have it installed, download and install Postgres here: https://www.postgresql.org/download/
git clone https://github.com/Ideeee/hngstagetwo.git
python3 -m venv {the-name-of-your-virtualenv}
3. Activate the virtual environment using .\env\scripts\Activate.ps1
on Windows or source ./env/bin/Activate
on Linux
pip install -r requirements.txt
alembic upgrade head
uvicorn main:app --reload
The application should start on localhost:8000