Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Installation Steps #20

Open
payne-chris-r opened this issue Oct 13, 2016 · 2 comments
Open

Change Installation Steps #20

payne-chris-r opened this issue Oct 13, 2016 · 2 comments

Comments

@payne-chris-r
Copy link
Contributor

  1. Download this template.
  2. Unzip and rename the template directory.
  3. Empty README.md and fill with your own content.
  4. Move into the new project and git init.
  5. Replace all instances of 'express-template' with your app name. This includes package.json, various debugger configurations, and the MongoDB store.
  6. Install dependencies with npm install.
  7. Set a SECRET_KEY in the environment by typing the command below:
echo SECRET_KEY=$(/usr/local/opt/openssl/bin/openssl rand -base64 66 | tr -d '\n') >>.env

In order to make requests from your deployed client application, you will need to set CLIENT_ORIGIN in the environment (e.g. heroku config:set CLIENT_ORIGIN=https://.github.io).
8. Run the API server with npm start. If you want your code to be reloaded on change, you should npm install -g nodemon and use nodemon instead of npm start.
For development and testing, set the SECRET_KEY from the root of your repository using

@gaand
Copy link

gaand commented Oct 15, 2016

I'm finding it difficult to understand what you intend to change. Also, there are formatting problems as displayed on GitHub.

@raq929
Copy link
Contributor

raq929 commented Nov 29, 2016

What's the status on this, @gaand and @payne-chris-r ? I'm updating the template, so I can make this change if we want it, or close the issue if we don't.
I don't really have an opinion.
(@gaand, to me, it just looks like moving secret key instructions into step 7 rather than having them below the list.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants