Skip to content

prisma-korea/prisma-fastapi-graphql

Repository files navigation

Prisma FastApi GraphQL

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

Prisma fastapi and graphQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages