Scheduling infrastructure for absolutely everyone.
add railway button
Faraz Patankar272cee28d106
diff --git a/README.md b/README.mdindex 964e87cdcba..6ee88dc5efb 100644--- a/README.md+++ b/README.md@@ -80,30 +80,30 @@ You will also need Google API credentials. You can get this from the [Google API```<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.++ 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.+ 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`.+ 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`.++ 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.++ 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>+ 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`)```sh@@ -127,7 +127,7 @@ You will also need Google API credentials. You can get this from the [Google APIgit pull```2. Apply database migrations by running <b>one of</b> the following commands:-+In a development environment, run:```npx prisma migrate dev@@ -140,7 +140,7 @@ You will also need Google API credentials. You can get this from the [Google API```3. Check the `.env.example` and compare it to your current `.env` file. In case there are any fields not presentin your current `.env`, add them there.-+For the current version, especially check if the variable `BASE_URL` is present and properly set in your environment, for example:```BASE_URL='https://yourdomain.com'@@ -155,6 +155,13 @@ You will also need Google API credentials. You can get this from the [Google APIyarn start```5. Enjoy the new version.+<!-- DEPLOYMENT -->+## Deployment++[](https://railway.app/new/template?template=https%3A%2F%2Fgithub.com%2Fcalendso%2Fcalendso&plugins=postgresql&envs=GOOGLE_API_CREDENTIALS%2CBASE_URL%2CNEXTAUTH_URL%2CPORT&BASE_URLDefault=http%3A%2F%2Flocalhost%3A3000&NEXTAUTH_URLDefault=http%3A%2F%2Flocalhost%3A3000&PORTDefault=3000)++You can deploy Calendso on [Railway](https://railway.app/) using the button above. The team at Railway also have a [detailed blog post](https://blog.railway.app/p/calendso) on deploying Calendso on their platform.+<!-- ROADMAP -->## Roadmap@@ -239,4 +246,3 @@ Special thanks to these amazing projects which help power Calendso:* [Prisma](https://prisma.io/)[product-screenshot]: https://i.imgur.com/4yvFj2E.png-