From 483e134eb021a3eb6257b0dd5c6d420e5fb49cd6 Mon Sep 17 00:00:00 2001 From: Martin Alexander Kaminski Date: Tue, 24 Nov 2026 17:05:36 +0100 Subject: [PATCH 1/2] docs: remove duplicate info about env variables --- backend/README.md | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/backend/README.md b/backend/README.md index bbe88f2..7de4bf3 100644 --- a/backend/README.md +++ b/backend/README.md @@ -8,7 +8,6 @@ - [Set the environment variables](#set-the-environment-variables) - [Download the dataset](#download-the-dataset) - [Set up the database](#set-up-the-database) - - [Use the database](#use-the-database) - [After changing the database schema](#after-changing-the-database-schema) - [Run the backend](#run-the-backend) - [Testing the API](#testing-the-api) @@ -69,6 +68,8 @@ cd backend cp .env.example .env ``` +The `.env` file will be your own, gitignored version. + Proceed to do the following: - Check whether the `DATABASE_URL` needs to be updated for the deployment @@ -101,17 +102,6 @@ Now you're ready to insert the data to the database! ### Set up the database -Copy the `.env.example` file and create your own, private and gitignored version: - -```sh -cd backend -cp .env.example .env -``` - -The default values work fine for local development. - -### Use the database - When running the database and backend, please go into the backend folder using `cd backend`. We have multiple commands defined in [package.json](./package.json) which will make our lives easier. From ff6bd3f5bc5c06281d84b275836d6b75fc593d64 Mon Sep 17 00:00:00 2001 From: Martin Alexander Kaminski Date: Tue, 24 Nov 2026 17:05:54 +0100 Subject: [PATCH 2/2] docs: fix old backend command example in README --- backend/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/README.md b/backend/README.md index 7de4bf3..396a1aa 100644 --- a/backend/README.md +++ b/backend/README.md @@ -194,7 +194,7 @@ that users must be logged in, and only see their own favorites). Whenever you change the GraphQL schema in the folder [./src/schema](./src/schema/), please run the following command: ```sh -pnpm exec graphql-codegen +pnpm codegen ``` This will create new TypeScript types for the modified schema.