From 243779dec80b745256b1d7da9b0fe975bef1b5b0 Mon Sep 17 00:00:00 2001 From: Alysson Melo Date: Wed, 2 Dec 2020 18:53:20 -0300 Subject: [PATCH 1/7] Update deploying-heroku-mlab.md --- _includes/parse-server/deploying-heroku-mlab.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_includes/parse-server/deploying-heroku-mlab.md b/_includes/parse-server/deploying-heroku-mlab.md index 8e4651df3..46be92713 100644 --- a/_includes/parse-server/deploying-heroku-mlab.md +++ b/_includes/parse-server/deploying-heroku-mlab.md @@ -1,13 +1,13 @@ -## Deploying to Heroku and mLab +## Deploying to Heroku and MongoDB Atlas -Heroku and mLab provide an easy way to deploy Parse Server, especially if you're new to managing your own backend infrastructure. +Heroku and MongoDB Atlas provide an easy way to deploy Parse Server, especially if you're new to managing your own backend infrastructure. Here are the steps: 1. Create a repo for your Express app with the Parse Server middleware mounted (you can use our [sample project](https://github.com/parse-community/parse-server-example), or start your own). 2. Create a Heroku account (if you don’t have one already) and use the Heroku Toolbelt to log in and prepare a new app in the same directory as your Express app. Take a look at Heroku's [Getting Started with Node.js guide](https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction) for more details. -3. Use the mLab addon: `heroku addons:create mongolab:sandbox` (or, you can create a Mongo instance yourself, either directly with mLab or your own box) -4. Use heroku config and note the URI provided by mLab under the var MONGOLAB_URI +3. Create an Atlas account. After that, create your cluster and a Database. Then create a new application connection and then copy the database connection string(URI). +4. Use heroku config and note the URI provided by Atlas under the var MONGOLAB_URI 5. Copy this URI and set it as a new config variable: `heroku config:set DATABASE_URI=mongodb://...` 6. Deploy it: `git push heroku master` From 7bdb847032906f57bdb3317bb722f803cbde5029 Mon Sep 17 00:00:00 2001 From: Alysson Melo Date: Wed, 9 Dec 2020 14:14:22 -0300 Subject: [PATCH 2/7] Update deploying-heroku-mlab.md --- _includes/parse-server/deploying-heroku-mlab.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/parse-server/deploying-heroku-mlab.md b/_includes/parse-server/deploying-heroku-mlab.md index 46be92713..8dd315296 100644 --- a/_includes/parse-server/deploying-heroku-mlab.md +++ b/_includes/parse-server/deploying-heroku-mlab.md @@ -6,7 +6,7 @@ Here are the steps: 1. Create a repo for your Express app with the Parse Server middleware mounted (you can use our [sample project](https://github.com/parse-community/parse-server-example), or start your own). 2. Create a Heroku account (if you don’t have one already) and use the Heroku Toolbelt to log in and prepare a new app in the same directory as your Express app. Take a look at Heroku's [Getting Started with Node.js guide](https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction) for more details. -3. Create an Atlas account. After that, create your cluster and a Database. Then create a new application connection and then copy the database connection string(URI). +3. Create an Atlas account. After that, create your cluster, a Database and a new application connetion. 4. Use heroku config and note the URI provided by Atlas under the var MONGOLAB_URI 5. Copy this URI and set it as a new config variable: `heroku config:set DATABASE_URI=mongodb://...` 6. Deploy it: `git push heroku master` From 0ff8f46f8cb9791466a2ea1cfc8d57f604510f99 Mon Sep 17 00:00:00 2001 From: Alysson Melo Date: Tue, 15 Dec 2020 09:54:01 -0300 Subject: [PATCH 3/7] Update deploying-heroku-mlab.md --- _includes/parse-server/deploying-heroku-mlab.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/_includes/parse-server/deploying-heroku-mlab.md b/_includes/parse-server/deploying-heroku-mlab.md index 8dd315296..9bfcd39e0 100644 --- a/_includes/parse-server/deploying-heroku-mlab.md +++ b/_includes/parse-server/deploying-heroku-mlab.md @@ -6,7 +6,21 @@ Here are the steps: 1. Create a repo for your Express app with the Parse Server middleware mounted (you can use our [sample project](https://github.com/parse-community/parse-server-example), or start your own). 2. Create a Heroku account (if you don’t have one already) and use the Heroku Toolbelt to log in and prepare a new app in the same directory as your Express app. Take a look at Heroku's [Getting Started with Node.js guide](https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction) for more details. -3. Create an Atlas account. After that, create your cluster, a Database and a new application connetion. +3. Set up your MongoDB database: + + i. Sign up for a [MongoDB Atlas account](https://www.mongodb.com/cloud/atlas). + + ii. Create a `New Project`. + + iii. Open the page `Database Access` and create a new database user with username and password. Remember these user credentials, you will need them later to connect Parse Server to the database. As user privileges choose `Read and write to any database`, you can change these privileges later on and make them more restrictive according to your needs. + iv. Open the page `Clusters` and create a new cluster. + + v. On the cluster details page, click on the tab `Collections` and create a new database. + + vi. On the cluster details page, click on the tab `Command Line Tools`, click on `Connect Instructions` and choose `Connect your application`. + + vii. Copy the database connection string. Replace the placeholders in the connection string with the username and password of the user you created earlier and the database name. + 4. Use heroku config and note the URI provided by Atlas under the var MONGOLAB_URI 5. Copy this URI and set it as a new config variable: `heroku config:set DATABASE_URI=mongodb://...` 6. Deploy it: `git push heroku master` From 252f941e42db4c0153207bb7a1dc66d9591657e7 Mon Sep 17 00:00:00 2001 From: Alysson Melo Date: Wed, 16 Dec 2020 10:48:06 -0300 Subject: [PATCH 4/7] Update deploying-heroku-mlab.md --- .../parse-server/deploying-heroku-mlab.md | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/_includes/parse-server/deploying-heroku-mlab.md b/_includes/parse-server/deploying-heroku-mlab.md index 9bfcd39e0..2a5c7d75e 100644 --- a/_includes/parse-server/deploying-heroku-mlab.md +++ b/_includes/parse-server/deploying-heroku-mlab.md @@ -7,20 +7,13 @@ Here are the steps: 1. Create a repo for your Express app with the Parse Server middleware mounted (you can use our [sample project](https://github.com/parse-community/parse-server-example), or start your own). 2. Create a Heroku account (if you don’t have one already) and use the Heroku Toolbelt to log in and prepare a new app in the same directory as your Express app. Take a look at Heroku's [Getting Started with Node.js guide](https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction) for more details. 3. Set up your MongoDB database: - - i. Sign up for a [MongoDB Atlas account](https://www.mongodb.com/cloud/atlas). - - ii. Create a `New Project`. - - iii. Open the page `Database Access` and create a new database user with username and password. Remember these user credentials, you will need them later to connect Parse Server to the database. As user privileges choose `Read and write to any database`, you can change these privileges later on and make them more restrictive according to your needs. - iv. Open the page `Clusters` and create a new cluster. - - v. On the cluster details page, click on the tab `Collections` and create a new database. - - vi. On the cluster details page, click on the tab `Command Line Tools`, click on `Connect Instructions` and choose `Connect your application`. - - vii. Copy the database connection string. Replace the placeholders in the connection string with the username and password of the user you created earlier and the database name. - + 1. Sign up for a [MongoDB Atlas account](https://www.mongodb.com/cloud/atlas). + 2. Create a `New Project`. + 3. Open the page `Database Access` and create a new database user with username and password. Remember these user credentials, you will need them later to connect Parse Server to the database. As user privileges choose `Read and write to any database`, you can change these privileges later on and make them more restrictive according to your needs. + 4. Open the page `Clusters` and create a new cluster. + 5. On the cluster details page, click on the tab `Collections` and create a new database. + 6. On the cluster details page, click on the tab `Command Line Tools`, click on `Connect Instructions` and choose `Connect your application`. + 7. Copy the database connection string. Replace the placeholders in the connection string with the username and password of the user you created earlier and the database name. 4. Use heroku config and note the URI provided by Atlas under the var MONGOLAB_URI 5. Copy this URI and set it as a new config variable: `heroku config:set DATABASE_URI=mongodb://...` 6. Deploy it: `git push heroku master` From 43740965fd356ccb80e4fad96640e7110870b558 Mon Sep 17 00:00:00 2001 From: Alysson Melo Date: Wed, 16 Dec 2020 10:49:04 -0300 Subject: [PATCH 5/7] Update deploying-heroku-mlab.md --- _includes/parse-server/deploying-heroku-mlab.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/_includes/parse-server/deploying-heroku-mlab.md b/_includes/parse-server/deploying-heroku-mlab.md index 2a5c7d75e..f141f5061 100644 --- a/_includes/parse-server/deploying-heroku-mlab.md +++ b/_includes/parse-server/deploying-heroku-mlab.md @@ -7,13 +7,13 @@ Here are the steps: 1. Create a repo for your Express app with the Parse Server middleware mounted (you can use our [sample project](https://github.com/parse-community/parse-server-example), or start your own). 2. Create a Heroku account (if you don’t have one already) and use the Heroku Toolbelt to log in and prepare a new app in the same directory as your Express app. Take a look at Heroku's [Getting Started with Node.js guide](https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction) for more details. 3. Set up your MongoDB database: - 1. Sign up for a [MongoDB Atlas account](https://www.mongodb.com/cloud/atlas). - 2. Create a `New Project`. - 3. Open the page `Database Access` and create a new database user with username and password. Remember these user credentials, you will need them later to connect Parse Server to the database. As user privileges choose `Read and write to any database`, you can change these privileges later on and make them more restrictive according to your needs. - 4. Open the page `Clusters` and create a new cluster. - 5. On the cluster details page, click on the tab `Collections` and create a new database. - 6. On the cluster details page, click on the tab `Command Line Tools`, click on `Connect Instructions` and choose `Connect your application`. - 7. Copy the database connection string. Replace the placeholders in the connection string with the username and password of the user you created earlier and the database name. + 3.1. Sign up for a [MongoDB Atlas account](https://www.mongodb.com/cloud/atlas). + 3.2. Create a `New Project`. + 3.3. Open the page `Database Access` and create a new database user with username and password. Remember these user credentials, you will need them later to connect Parse Server to the database. As user privileges choose `Read and write to any database`, you can change these privileges later on and make them more restrictive according to your needs. + 3.4. Open the page `Clusters` and create a new cluster. + 3.5. On the cluster details page, click on the tab `Collections` and create a new database. + 3.6. On the cluster details page, click on the tab `Command Line Tools`, click on `Connect Instructions` and choose `Connect your application`. + 3.7. Copy the database connection string. Replace the placeholders in the connection string with the username and password of the user you created earlier and the database name. 4. Use heroku config and note the URI provided by Atlas under the var MONGOLAB_URI 5. Copy this URI and set it as a new config variable: `heroku config:set DATABASE_URI=mongodb://...` 6. Deploy it: `git push heroku master` From 427eec8fb4205b38624c7bfd5b1555027702722a Mon Sep 17 00:00:00 2001 From: Alysson Melo Date: Wed, 16 Dec 2020 10:49:43 -0300 Subject: [PATCH 6/7] Update deploying-heroku-mlab.md --- _includes/parse-server/deploying-heroku-mlab.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/_includes/parse-server/deploying-heroku-mlab.md b/_includes/parse-server/deploying-heroku-mlab.md index f141f5061..2a5c7d75e 100644 --- a/_includes/parse-server/deploying-heroku-mlab.md +++ b/_includes/parse-server/deploying-heroku-mlab.md @@ -7,13 +7,13 @@ Here are the steps: 1. Create a repo for your Express app with the Parse Server middleware mounted (you can use our [sample project](https://github.com/parse-community/parse-server-example), or start your own). 2. Create a Heroku account (if you don’t have one already) and use the Heroku Toolbelt to log in and prepare a new app in the same directory as your Express app. Take a look at Heroku's [Getting Started with Node.js guide](https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction) for more details. 3. Set up your MongoDB database: - 3.1. Sign up for a [MongoDB Atlas account](https://www.mongodb.com/cloud/atlas). - 3.2. Create a `New Project`. - 3.3. Open the page `Database Access` and create a new database user with username and password. Remember these user credentials, you will need them later to connect Parse Server to the database. As user privileges choose `Read and write to any database`, you can change these privileges later on and make them more restrictive according to your needs. - 3.4. Open the page `Clusters` and create a new cluster. - 3.5. On the cluster details page, click on the tab `Collections` and create a new database. - 3.6. On the cluster details page, click on the tab `Command Line Tools`, click on `Connect Instructions` and choose `Connect your application`. - 3.7. Copy the database connection string. Replace the placeholders in the connection string with the username and password of the user you created earlier and the database name. + 1. Sign up for a [MongoDB Atlas account](https://www.mongodb.com/cloud/atlas). + 2. Create a `New Project`. + 3. Open the page `Database Access` and create a new database user with username and password. Remember these user credentials, you will need them later to connect Parse Server to the database. As user privileges choose `Read and write to any database`, you can change these privileges later on and make them more restrictive according to your needs. + 4. Open the page `Clusters` and create a new cluster. + 5. On the cluster details page, click on the tab `Collections` and create a new database. + 6. On the cluster details page, click on the tab `Command Line Tools`, click on `Connect Instructions` and choose `Connect your application`. + 7. Copy the database connection string. Replace the placeholders in the connection string with the username and password of the user you created earlier and the database name. 4. Use heroku config and note the URI provided by Atlas under the var MONGOLAB_URI 5. Copy this URI and set it as a new config variable: `heroku config:set DATABASE_URI=mongodb://...` 6. Deploy it: `git push heroku master` From b9f7f6bb21757aa977cd1a322a9017e0e8603d7a Mon Sep 17 00:00:00 2001 From: Alysson Melo Date: Wed, 16 Dec 2020 10:57:32 -0300 Subject: [PATCH 7/7] Update deploying-heroku-mlab.md --- _includes/parse-server/deploying-heroku-mlab.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/_includes/parse-server/deploying-heroku-mlab.md b/_includes/parse-server/deploying-heroku-mlab.md index 2a5c7d75e..45edc7c7e 100644 --- a/_includes/parse-server/deploying-heroku-mlab.md +++ b/_includes/parse-server/deploying-heroku-mlab.md @@ -7,13 +7,13 @@ Here are the steps: 1. Create a repo for your Express app with the Parse Server middleware mounted (you can use our [sample project](https://github.com/parse-community/parse-server-example), or start your own). 2. Create a Heroku account (if you don’t have one already) and use the Heroku Toolbelt to log in and prepare a new app in the same directory as your Express app. Take a look at Heroku's [Getting Started with Node.js guide](https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction) for more details. 3. Set up your MongoDB database: - 1. Sign up for a [MongoDB Atlas account](https://www.mongodb.com/cloud/atlas). - 2. Create a `New Project`. - 3. Open the page `Database Access` and create a new database user with username and password. Remember these user credentials, you will need them later to connect Parse Server to the database. As user privileges choose `Read and write to any database`, you can change these privileges later on and make them more restrictive according to your needs. - 4. Open the page `Clusters` and create a new cluster. - 5. On the cluster details page, click on the tab `Collections` and create a new database. - 6. On the cluster details page, click on the tab `Command Line Tools`, click on `Connect Instructions` and choose `Connect your application`. - 7. Copy the database connection string. Replace the placeholders in the connection string with the username and password of the user you created earlier and the database name. + 1. Sign up for a [MongoDB Atlas account](https://www.mongodb.com/cloud/atlas). + 2. Create a `New Project`. + 3. Open the page `Database Access` and create a new database user with username and password. Remember these user credentials, you will need them later to connect Parse Server to the database. As user privileges choose `Read and write to any database`, you can change these privileges later on and make them more restrictive according to your needs. + 4. Open the page `Clusters` and create a new cluster. + 5. On the cluster details page, click on the tab `Collections` and create a new database. + 6. On the cluster details page, click on the tab `Command Line Tools`, click on `Connect Instructions` and choose `Connect your application`. + 7. Copy the database connection string. Replace the placeholders in the connection string with the username and password of the user you created earlier and the database name. 4. Use heroku config and note the URI provided by Atlas under the var MONGOLAB_URI 5. Copy this URI and set it as a new config variable: `heroku config:set DATABASE_URI=mongodb://...` 6. Deploy it: `git push heroku master`