Skip to content

Latest commit

 

History

History
47 lines (41 loc) · 1.24 KB

README.md

File metadata and controls

47 lines (41 loc) · 1.24 KB

GamingRealm Backend

API Testing

Architecture

TODO: fill this in

Developing

This project uses the Poetry package manager. After installing poetry, run

poetry install

in this directory to install all dependencies. Then, run

poetry run pre-commit install

to install the git pre-commit hooks. To manually trigger linting, run poetry run task lint.

The following steps will differ depending on whether you have PostgreSQL installed locally.

Local PostgreSQL

  1. Set the GR_DATABASE_URL environment variable (or make a file called .env in this directory and make it); set it to your database connection URL.
  2. Run
poetry run prisma generate
poetry run prisma migrate dev

You don't have PostgreSQL installed

Just use our Docker container for development

docker compose up

Running the server

Run

poetry run task runserver

Running tests

Run

poetry run task test

Database Structure

ER Diagram