REST API made with FastAPI, PrismaORM and PostgreSQL for manage users' photos
First, create a virtual environment to manage the project dependencies.
python -m venv venv
.\venv\Scripts\activate.bat
source venv/bin/activate
Use the package manager pip to install the requirements.
pip install -r requirements.txt
prisma generate
Create an .env
file in the root of the project with the following variables:
Variables with text are fixed, depending on your case change the variables containing [].
DB_URL="postgresql://[user]:[password]@[host]:5432/photo_manager"
# Generate a key with this command: openssl rand -hex 32
SECRET_KEY = [key]
API_EMAIL = [host]
python main.py