Skip to content

Commit

Permalink
finish get allDonations route (it works!)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessica2673 committed Mar 14, 2024
1 parent 0fc6a08 commit 121cb2d
Show file tree
Hide file tree
Showing 7 changed files with 18,302 additions and 3,245 deletions.
21 changes: 10 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ docker exec -it scv2-frontend bash -c "yarn fix"
```

## Database/Prisma Information
"npx prisma generate" to generate at the start
"npx prisma db push" to push
"npx prisma studio" to run prisma

### Creating Prisma Migration

Go to `backend/typescript` and run

npx prisma migrate dev

### Note: Manual Database Setup

Expand All @@ -76,6 +85,7 @@ Update .env file in /backend/typescript to be
```bash
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/scv2
```
Note: if you get errors about prisma functions not existing,you may need to use DATABASE_URL=postgresql://postgres:postgres@db:5432/scv2

Try running (when the docker container is up):

Expand All @@ -91,17 +101,6 @@ nvm install 18.18.2
nvm use 18.18.2
```

### Creating Prisma Migration

Go to `backend/typescript` and run

npx prisma migrate dev

### Useful Prisma Commands
"npx prisma db push" to push
"npx prisma studio" to run prisma


***Need to change scv2 to don-efficace at some point***

## The Team
Expand Down
Loading

0 comments on commit 121cb2d

Please sign in to comment.