Handy shortcut to start Prisma Studio (#1921)

* 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>
pull/1916/head^2
Demian Caldelas 2022-02-21 13:02:09 -03:00 committed by GitHub
parent 0142a1502f
commit b3ada7c25c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 5 deletions

View File

@ -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.

View File

@ -108,7 +108,7 @@ yarn dx
1. Run (in development mode)
```sh
yarn dev --scope=@calcom/web
yarn dev
```
### Setting up your first user
@ -116,7 +116,7 @@ yarn dx
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.

View File

@ -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.
@ -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

View File

@ -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\"",

View File

@ -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",