You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Leave the `GOOGLE_CLIENT_ID` empty if you do not need the OAuth provided by Google.
81
-
-`EXPORT_AWS_S3_XXX` are used for file export. You could leave it empty if you don't use it.
82
-
83
-
## Start the stack
84
-
85
-
```bash
86
-
cd dev
87
-
docker compose up -d
88
-
```
89
-
90
-
You need to initialized the database first before starting the stack. See below.
91
-
92
-
Wait a few minutes for the package installation and compilation. Once the `ui` and
93
-
`api` containers are ready, go to `http://localhost:80` to see the app.
94
-
95
-
-`http://localhost:80/graphql`: Apollo GraphQL explorer for the backend APIs
96
-
-`http://prisma.127.0.0.1.sslip.io`: Prisma Studio for viewing and debugging the database.
97
-
98
-
## Initialize the database
99
-
100
-
If this is your first time running it, you would need to initialize the database as it's empty. To do that, open a shell into the API container and run:
101
-
102
-
```bash
103
-
npx prisma migrate dev
104
-
```
105
-
106
-
This command is also needed after the database schema is changed. The protocol is:
107
-
108
-
- One developer changed [the schema](./api/prisma/schema.prisma). He will run
109
-
`npx prisma migrate dev --name add_a_new_field`. This will generate a
The schema change along with this migration need to be checked in to git.
113
-
- Another developer pulls the change, then running the `npx prisma migrate dev` (in the api container's shell) to apply the schema change.
114
-
115
-
## Auto-completion & Linting
116
-
117
-
Although we developed this project using docker, we still want features like auto-completion and linting while coding. For that to work, you need to install the all the relevant node packages, i.e.
0 commit comments