Scheduling infrastructure for absolutely everyone.
Update README.md
Damian Harateh69be878ee7f4
diff --git a/README.md b/README.mdindex 161cb0794f8..a8e1d6e9ed6 100644--- a/README.md+++ b/README.md@@ -64,6 +64,33 @@ You will also need Google API credentials. You can get this from the [Google APIDATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>'GOOGLE_API_CREDENTIALS='secret'```+ <details>+ <summary>If you don't know how to configure the DATABASE_URL, then follow the steps here</summary>++ 1. Create a free account with [Heroku](https://www.heroku.com/).++ 2. Create a new app.+ <img width="306" alt="Google Chrome — CleanShotX | 2021-04-20 at 02 01 56" src="https://user-images.githubusercontent.com/16905768/115322780-b3d58c00-a17e-11eb-8a52-b758fb0ea942.png">++ 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.+ ++ 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.+ ++ 5. Once the pop-up appears, click `Submit Order Form` - plan name should be `Hobby Dev - Free`.+ <img width="512" alt="Google Chrome — CleanShotX | 2021-04-20 at 02 04 29" src="https://user-images.githubusercontent.com/16905768/115323265-b4baed80-a17f-11eb-99f0-d67f019aa6df.png">++ 6. Once you completed the above steps, click on your newly created `Heroku Postgres` and go to its `Settings`.+ ++ 7. In `Settings`, copy your URI to your Calendso .env file and replace the `postgresql://<user>:<pass>@<db-host>:<db-port>` with it.+ + ++ 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>+5. Set up the database using the Prisma schema (found in `prisma/schema.prisma`)```shnpx prisma db push --preview-feature@@ -76,9 +103,9 @@ You will also need Google API credentials. You can get this from the [Google API```npx prisma studio```-9. Click on the `User` model to add a new user record.-10. 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.-11. Open a browser to [http://localhost:3000](http://localhost:3000) and login with your just created, first user.+8. Click on the `User` model to add a new user record.+9. 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.+10. Open a browser to [http://localhost:3000](http://localhost:3000) and login with your just created, first user.<!-- ROADMAP -->## Roadmap