Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.