Skip to content

kevincrick/prisma-fastapi

Repository files navigation

Prisma FastApi

CI

Blog post

Setup virtual environment

python -m venv .venv
source .venv/bin/activate

Install requirements

pip install -r requirements.txt

Setup environment

  1. cp .env.sample .env
  2. Include DATABASE_URL
    DATABASE_URL="postgresql://<user>:<password>@<url>:5432/postgres?schema=<scheme>"
    

    Note that you should change appropriate values in user, password, url, scheme fields. Or you can even use other database. More about connection urls

Generate Prisma Client and Nexus

prisma generate

Start server

uvicorn main:app --reload

Notes

After installing packages

pip freeze > requirements.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages