diff --git a/backend/README.md b/backend/README.md index bbe88f2..396a1aa 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. @@ -204,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.