Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated instructions to include MySQL development database #17

Merged
merged 2 commits into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
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
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,25 @@ NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/dashboard

For `OPENAI_API_KEY`, `REPLICATE_API_TOKEN`, `DATABASE_URL`, `STRIPE_API_KEY`, and `NEXT_PUBLIC_APP_URL`, refer to the respective service's documentation or settings page to get these values.

## 4. **Set Up Prisma**
To set up Prisma and push schema to the database, use the following commands:
# 4. **Running Database (Docker)**
This step is necessary if you with to use the Docker image that has been provided. You can also use an alternative cloud service for MySQL. Make sure to change the connection string on the `.env` file if you wish to do so.

Install the Prisma CLI:
Run the following command from the root of the project to start your MySQL container:
```sh
yarn global add prisma
docker-compose --env-file .env -f docker/docker-compose.yml up db
```

## 5. **Set Up Prisma**
To set up Prisma and push schema to the database, use the following commands:

Generate Prisma Client:
```sh
npx prisma generate
yarn prisma generate
```

Push Prisma schema to the database:
```sh
npx prisma db push --preview-feature
yarn prisma db push
```

## 5. **Set Up Stripe Webhook**
Expand Down
Loading