@@ -52,50 +52,51 @@ yarn dx
52
52
53
53
1 . Configure database in the ` packages/prisma/.env ` file. Replace ` <user> ` , ` <pass> ` , ` <db-host> ` , ` <db-port> ` with their applicable values
54
54
55
- ``` text
56
- DATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>'
57
- ```
55
+ ``` text
56
+ DATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>'
57
+ ```
58
+
59
+ <details >
58
60
59
- <details >
61
+ <summary >
62
+ If you don't know how to configure the DATABASE_URL, then follow the steps here to create a quick DB
63
+ using Heroku
64
+ </summary >
60
65
61
- <summary >
62
- If you don't know how to configure the DATABASE_URL, then follow the steps here to create a quick DB
63
- using Heroku
64
- </summary >
66
+ 1 . Create a free account with [ Heroku] ( https://www.heroku.com/ ) .
65
67
66
- 1 . Create a free account with [ Heroku ] ( https://www.heroku.com/ ) .
68
+ 2 . Create a new app .
67
69
68
- 2 . Create a new app.
70
+ <img
71
+ width = " 306"
72
+ alt = " Create an App"
73
+ src = " https://user-images.githubusercontent.com/16905768/115322780-b3d58c00-a17e-11eb-8a52-b758fb0ea942.png"
74
+ />
69
75
70
- <img
71
- width = " 306"
72
- alt = " Create an App"
73
- src = " https://user-images.githubusercontent.com/16905768/115322780-b3d58c00-a17e-11eb-8a52-b758fb0ea942.png"
74
- />
76
+ 3 . In your new app, go to ` Overview ` and next to ` Installed add-ons ` , click ` Configure Add-ons ` . We need this to set up our database.
77
+ ![ image] ( https://user-images.githubusercontent.com/16905768/115323232-a53ba480-a17f-11eb-98db-58e2f8c52426.png )
75
78
76
- 3 . In your new app, go to ` Overview ` and next to ` Installed add -ons` , click ` Configure Add -ons` . We need this to set up our database .
77
- ![ image] ( https://user-images.githubusercontent.com/16905768/115323232-a53ba480 -a17f-11eb-98db-58e2f8c52426 .png )
79
+ 4 . Once you clicked on ` Configure Add -ons` , click on ` Find more add -ons` and search for ` postgres ` . One of the options will be ` Heroku Postgres ` - click on that option .
80
+ ![ image] ( https://user-images.githubusercontent.com/16905768/115323126-5beb5500 -a17f-11eb-8030-7380310807a9 .png )
78
81
79
- 4 . Once you clicked on ` Configure Add-ons ` , click on ` Find more add-ons ` and search for ` postgres ` . One of the options will be ` Heroku Postgres ` - click on that option.
80
- ![ image] ( https://user-images.githubusercontent.com/16905768/115323126-5beb5500-a17f-11eb-8030-7380310807a9.png )
82
+ 5 . Once the pop-up appears, click ` Submit Order Form ` - plan name should be ` Hobby Dev - Free ` .
81
83
82
- 5 . Once the pop-up appears, click ` Submit Order Form ` - plan name should be ` Hobby Dev - Free ` .
84
+ <img
85
+ width = " 512"
86
+ alt = " Submit Order Form"
87
+ src = " https://user-images.githubusercontent.com/16905768/115323265-b4baed80-a17f-11eb-99f0-d67f019aa6df.png"
88
+ />
83
89
84
- <img
85
- width = " 512"
86
- alt = " Submit Order Form"
87
- src = " https://user-images.githubusercontent.com/16905768/115323265-b4baed80-a17f-11eb-99f0-d67f019aa6df.png"
88
- />
90
+ 6 . Once you completed the above steps, click on your newly created ` Heroku Postgres ` and go to its ` Settings ` .
91
+ ![ image] ( https://user-images.githubusercontent.com/16905768/115323367-e92ea980-a17f-11eb-9ff4-dec95f2ec349.png )
89
92
90
- 6 . Once you completed the above steps, click on your newly created ` Heroku Postgres ` and go to its ` Settings ` .
91
- ![ image] ( https://user-images.githubusercontent.com/16905768/115323367-e92ea980-a17f-11eb-9ff4-dec95f2ec349.png )
93
+ 7 . In ` Settings ` , copy your URI to your Cal.com .env file and replace the ` postgresql://<user>:<pass>@<db-host>:<db-port> ` with it.
94
+ ![ image] ( https://user-images.githubusercontent.com/16905768/115323556-4591c900-a180-11eb-9808-2f55d2aa3995.png )
95
+ ![ image] ( https://user-images.githubusercontent.com/16905768/115323697-7a9e1b80-a180-11eb-9f08-a742b1037f90.png )
92
96
93
- 7 . In ` Settings ` , copy your URI to your Cal.com .env file and replace the ` postgresql://<user>:<pass>@<db-host>:<db-port> ` with it.
94
- ![ image] ( https://user-images.githubusercontent.com/16905768/115323556-4591c900-a180-11eb-9808-2f55d2aa3995.png )
95
- ![ image] ( https://user-images.githubusercontent.com/16905768/115323697-7a9e1b80-a180-11eb-9f08-a742b1037f90.png )
97
+ 8 . To view your DB, once you add new data in Prisma, you can use [ Heroku Data Explorer] ( https://heroku-data-explorer.herokuapp.com/ ) .
96
98
97
- 8 . To view your DB, once you add new data in Prisma, you can use [ Heroku Data Explorer] ( https://heroku-data-explorer.herokuapp.com/ ) .
98
- </details >
99
+ </details >
99
100
100
101
1 . Set a 32 character random string in your ` apps/web/.env ` file for the ` CALENDSO_ENCRYPTION_KEY ` (You can use a command like ` openssl rand -base64 24 ` to generate one).
101
102
1 . Set up the database using the Prisma schema (found in ` packages/prisma/schema.prisma ` )
0 commit comments