Skip to content

Commit

Permalink
Handy shortcut to start Prisma Studio (calcom#1921)
Browse files Browse the repository at this point in the history
* Add fast access to start Prisma Studio

* Updates docs

* Minor fixes in docs

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
denik1981 and kodiakhq[bot] authored Feb 21, 2022
1 parent 0142a15 commit b3ada7c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ yarn dx
1. Open [Prisma Studio](https://www.prisma.io/studio) to look at or modify the database content:
```sh
yarn prisma studio
yarn db-studio
```
1. Click on the `User` model to add a new user record.
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/pages/self-hosting/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ yarn dx
1. Run (in development mode)
```sh
yarn dev --scope=@calcom/web
yarn dev
```
### Setting up your first user
1. Open [Prisma Studio](https://www.prisma.io/studio) to look at or modify the database content:
```sh
npx prisma studio
yarn db-studio
```
1. Click on the `User` model to add a new user record.
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/pages/self-hosting/vercel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ You need a PostgresDB database hosted somewhere. [Heroku](https://www.heroku.com

5. Open [Prisma Studio](https://www.prisma.io/studio) to look at or modify the database content:
```
npx prisma studio
yarn db-studio
```
6. Click on the `User` model to add a new user record.
7. Fill out the fields (remembering to encrypt your password with [BCrypt](https://bcrypt-generator.com/)) and click `Save 1 Record` to create your first user.
Expand All @@ -42,5 +42,5 @@ You need a PostgresDB database hosted somewhere. [Heroku](https://www.heroku.com
1. Import from your forked repository
1. Set the Environment Variables
1. Set the root directory to `apps/web`
1. Override the build command to `cd ../.. && npx turbo run build --scope=@calcom/web --include-dependencies --no-deps`
1. Override the build command to `cd ../.. && yarn build`
1. Hit Deploy
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"clean": "turbo run clean && rm -rf node_modules",
"db-deploy": "turbo run db-deploy",
"db-seed": "turbo run db-seed",
"db-studio": "yarn workspace @calcom/prisma db-view",
"deploy": "turbo run deploy",
"dev": "turbo run dev --scope=\"@calcom/web\"",
"docs-dev": "turbo run dev --scope=\"@calcom/docs\"",
Expand Down
1 change: 1 addition & 0 deletions packages/prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"db-reset": "run-s db-nuke db-setup",
"db-seed": "yarn prisma db seed",
"db-setup": "run-s db-up db-deploy db-seed",
"db-studio": "yarn prisma studio",
"db-up": "docker-compose up -d",
"deploy": "run-s build db-deploy",
"dx": "yarn db-setup",
Expand Down

0 comments on commit b3ada7c

Please sign in to comment.