Skip to content

Commit

Permalink
update prisma
Browse files Browse the repository at this point in the history
  • Loading branch information
vherus committed Jul 10, 2024
1 parent 7197cff commit dff3c04
Show file tree
Hide file tree
Showing 4 changed files with 273 additions and 235 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
DATABASE_URL="YOUR_DATABASE_URL?schema=prisma"
SHADOW_DATABASE_URL="YOUR_SHADOW_DATABASE_URL?schema=shadow"
DATABASE_URL="YOUR_DATABASE_URL"

# This env var must be prefixed with `VITE_` in order to work in the client / Vite React app.
VITE_PORT=4000
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,9 @@ app (`src/client/`) *and* a back-end express API (`src/server/`) in it.
2. Then, once you have cloned your fork of the repo, you can run `git checkout freedom` in your terminal.
3. If you do not uncheck this box, then you will only be able to access the `main` branch.
2. Rename `.env.example` to `.env`
3. Edit the `DATABASE_URL` variable in `.env`, swapping `YOUR_DATABASE_URL` for the URL of the database you just
created. Leave `?schema=prisma` at the end.
4. Edit the `SHADOW_DATABASE_URL` variable in `.env`, swapping `YOUR_SHADOW_DATABASE_URL` for the URL of a shadow
database you created in an earlier exercise. Leave `?schema=shadow` at the end.
5. Run `npm ci` to install the project dependencies.
6. We have already created the Prisma schema and migrations for you. Run `npx prisma migrate reset` to execute the
3. Edit the `DATABASE_URL` variable in `.env`, swapping `YOUR_DATABASE_URL` for the URL of your database
4. Run `npm ci` to install the project dependencies.
5. If you're using the main branch, we have already created the Prisma schema and migrations for you. Run `npx prisma migrate reset` to execute the
database migrations. Press `y` when it asks if you're sure.

## Instructions
Expand Down
Loading

0 comments on commit dff3c04

Please sign in to comment.