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
parent
0142a1502f
commit
b3ada7c25c
|
@ -178,7 +178,7 @@ yarn dx
|
||||||
1. Open [Prisma Studio](https://www.prisma.io/studio) to look at or modify the database content:
|
1. Open [Prisma Studio](https://www.prisma.io/studio) to look at or modify the database content:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
yarn prisma studio
|
yarn db-studio
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Click on the `User` model to add a new user record.
|
1. Click on the `User` model to add a new user record.
|
||||||
|
|
|
@ -108,7 +108,7 @@ yarn dx
|
||||||
1. Run (in development mode)
|
1. Run (in development mode)
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
yarn dev --scope=@calcom/web
|
yarn dev
|
||||||
```
|
```
|
||||||
|
|
||||||
### Setting up your first user
|
### 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:
|
1. Open [Prisma Studio](https://www.prisma.io/studio) to look at or modify the database content:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npx prisma studio
|
yarn db-studio
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Click on the `User` model to add a new user record.
|
1. Click on the `User` model to add a new user record.
|
||||||
|
|
|
@ -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:
|
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.
|
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.
|
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. Import from your forked repository
|
||||||
1. Set the Environment Variables
|
1. Set the Environment Variables
|
||||||
1. Set the root directory to `apps/web`
|
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. Hit Deploy
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
"clean": "turbo run clean && rm -rf node_modules",
|
"clean": "turbo run clean && rm -rf node_modules",
|
||||||
"db-deploy": "turbo run db-deploy",
|
"db-deploy": "turbo run db-deploy",
|
||||||
"db-seed": "turbo run db-seed",
|
"db-seed": "turbo run db-seed",
|
||||||
|
"db-studio": "yarn workspace @calcom/prisma db-view",
|
||||||
"deploy": "turbo run deploy",
|
"deploy": "turbo run deploy",
|
||||||
"dev": "turbo run dev --scope=\"@calcom/web\"",
|
"dev": "turbo run dev --scope=\"@calcom/web\"",
|
||||||
"docs-dev": "turbo run dev --scope=\"@calcom/docs\"",
|
"docs-dev": "turbo run dev --scope=\"@calcom/docs\"",
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
"db-reset": "run-s db-nuke db-setup",
|
"db-reset": "run-s db-nuke db-setup",
|
||||||
"db-seed": "yarn prisma db seed",
|
"db-seed": "yarn prisma db seed",
|
||||||
"db-setup": "run-s db-up db-deploy db-seed",
|
"db-setup": "run-s db-up db-deploy db-seed",
|
||||||
|
"db-studio": "yarn prisma studio",
|
||||||
"db-up": "docker-compose up -d",
|
"db-up": "docker-compose up -d",
|
||||||
"deploy": "run-s build db-deploy",
|
"deploy": "run-s build db-deploy",
|
||||||
"dx": "yarn db-setup",
|
"dx": "yarn db-setup",
|
||||||
|
|
Loading…
Reference in New Issue