Scheduling infrastructure for absolutely everyone.
Refactor/readme.md (#8723)
vaibhav bisht492b4d3e978b
diff --git a/README.md b/README.mdindex 0766b12f99f..f20957d3dd5 100644--- a/README.md+++ b/README.md@@ -166,33 +166,28 @@ echo 'NEXT_PUBLIC_DEBUG=1' >> .env```DATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>'```-<details>- <summary>If you don't know how to configure the DATABASE_URL, then follow the steps here to create a quick DB using Heroku.</summary>+ <summary>If you don't know how to configure the DATABASE_URL, then follow the steps here to create a quick local DB</summary>- 1. Create a free account with [Heroku](https://heroku.com).+ 1. [Download](https://www.postgresql.org/download/) and install postgres in your local (if you don't have it already).- 2. Create a new app.- <img width="306" alt="Create an App" src="https://user-images.githubusercontent.com/16905768/115322780-b3d58c00-a17e-11eb-8a52-b758fb0ea942.png">+ 2. Create your own local db by executing `createDB <DB name>`- 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.- + 3. Now open your psql shell with the DB you created: `psql -h localhost -U postgres -d <DB name>`- 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.- + 4. Inside the psql shell execute `\conninfo`. And you will get the following info.+ - 5. Once the pop-up appears, click `Submit Order Form` - plan name should be `Hobby Dev - Free`.- <img width="512" alt="Submit Order Form" src="https://user-images.githubusercontent.com/16905768/115323265-b4baed80-a17f-11eb-99f0-d67f019aa6df.png">+ 5. Now extract all the info and add it to your DATABASE_URL. The url would look something like this+ `postgresql://postgres:postgres@localhost:5432/Your-DB-Name`.- 6. Once you completed the above steps, click on your newly created `Heroku Postgres` and go to its `Settings`.- + </details>- 7. In `Settings`, copy your URI to your Cal.com `.env` file and replace the `postgresql://<user>:<pass>@<db-host>:<db-port>` with it.- - + If you don't want to create a local DB. Then you can also consider using services like railway.app or render.+ - [Setup postgres DB with railway.app](https://arctype.com/postgres/setup/railway-postgres)+ - [Setup postgres DB with render](https://render.com/docs/databases)- 8. To view your DB, once you add new data in Prisma, you can use [Heroku Data Explorer](https://heroku-data-explorer.herokuapp.com).- </details>+1. Copy and paste your `DATABASE_URL` from `.env` to `.env.appStore`.1. Set a 32 character random string in your `.env` file for the `CALENDSO_ENCRYPTION_KEY` (You can use a command like `openssl rand -base64 24` to generate one).1. Set up the database using the Prisma schema (found in `packages/prisma/schema.prisma`)