From a94ee3d5b8e9b0cfd0948905f00cd64570692d36 Mon Sep 17 00:00:00 2001 From: Niraj Nandish Date: Wed, 21 Nov 2018 12:06:13 -0800 Subject: [PATCH] Correct order of FCC local setup (#34410) --- docs/how-to-setup-freecodecamp-locally.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/how-to-setup-freecodecamp-locally.md b/docs/how-to-setup-freecodecamp-locally.md index e8ace78f47..21a34c76de 100644 --- a/docs/how-to-setup-freecodecamp-locally.md +++ b/docs/how-to-setup-freecodecamp-locally.md @@ -140,14 +140,7 @@ Please avoid creating GitHub issues for pre-requisite issues. They are out of th ### Installing dependencies -Start by installing the dependencies required for the application to startup. - -```shell -# Install NPM dependencies -npm install -``` - -Then you need to add the private environment variables (API Keys): +First you need to add the private environment variables (API Keys): ```shell # Create a copy of the "sample.env" and name it as ".env". @@ -160,6 +153,13 @@ cp sample.env .env copy sample.env .env ``` +Then you have to install the dependencies required for the application to startup. + +```shell +# Install NPM dependencies +npm install +``` + The keys are not required to be changed, to run the app locally. You can leave the default values from the `sample.env` as it is. `MONGOHQ_URL` is the most important one. Unless you have MongoDB running in a setup different than the defaults, the URL in the `sample.env` should work fine.