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

Secret generating command repositioning. #35

Open
BenGitsCode opened this issue Dec 13, 2016 · 2 comments
Open

Secret generating command repositioning. #35

BenGitsCode opened this issue Dec 13, 2016 · 2 comments

Comments

@BenGitsCode
Copy link

1.  [Download](../../archive/master.zip) this template.
1.  Unzip and rename the template directory.
1.  Empty [`README.md`](README.md) and fill with your own content.
1.  Move into the new project and `git init`.
1.  Replace all instances of `'express-api-template'` with your app name. This
    includes `package.json`, various debugger configurations, and the MongoDB
    store.
1.  Install dependencies with `npm install`.
1.  Set a SECRET_KEY in the environment.
+ 1. ```sh
+ echo SECRET_KEY=$(/usr/local/opt/openssl/bin/openssl rand -base64 66 | tr -d '\n') >>.env
+ ```
1.  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`.
1.  Once everything is working, make an initial commit.

For development and testing, set the SECRET_KEY from the root of your
 repository using

- ```sh
- echo SECRET_KEY=$(/usr/local/opt/openssl/bin/openssl rand -base64 66 | tr -d '\n') >>.env
- ```
@gaand
Copy link

gaand commented Dec 13, 2016

I don't agree with this change. Setting a SECRET_KEY is also something you do for the deployed API.

Also, reading.

@BenGitsCode
Copy link
Author

Opened it per Chris' suggestion. I'm A-Okay with that.

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

2 participants