Game file syncing to user-specified locations
Create your .env
file in the root project directory, you can copy .env.sample
as the base for this.
docker compose up --build
The first build will result in an error that the Prisma client has not been generated yet. In order to fix this,
exec into your docker container and in the directory containing the /prisma
directory (the root directory), run the command prisma generate
. You will need to restart the container, and you should be able to access the test route at localhost:8000/
.
A sample User schema has been created to allow the prisma client to generate upon project creation. This should be modified or deleted to fit your app's needs prior to creating any migrations.
This project is using prisma as the ORM
The migrations can be pushed to the running postgresql container using the schema and migrations found in ./backend/database
.
prisma db push --schema backend/prisma/prisma.schema
Migrations can be created by using this command, while the database is running.
prisma migrate dev --schema backend/prisma/schema.prisma --name "what this change does"