-
Prerequisites: Node v12.19.0, Postgres 13.0
-
Rename '.env.sample' to '.env' and adjust values
-
Run
npm install
npx prisma introspect
npx prisma generate
npm run dev
For initial/fresh backend deploy: Please mind, that you have to prepare the database first, by running the schema.sql file on it. Mind, that this will erase all data!
Build latest docker image:
docker build -t indebrau/indebrau-backend .
Please keep in mind, that if changing the media directory in the environment variables, a docker-compose script (mounting the directory as a volume) has to be adjusted as well.