Make it so config.json is not checked in

1-fix-create-object
Darius Kazemi 2019-03-25 21:08:40 -07:00
rodzic 62f0fa88dd
commit 24a4ad52c0
3 zmienionych plików z 14 dodań i 1 usunięć

1
.gitignore vendored
Wyświetl plik

@ -1,3 +1,4 @@
node_modules/
package-lock.json
*.db
config.json

Wyświetl plik

@ -20,6 +20,10 @@ Clone the repository, then `cd` into its root directory. Install dependencies:
`npm i`
Copy `config-template.json` to `config.json`.
`cp config-template.json config.json`
Update your `config.json` file:
```js
@ -45,7 +49,7 @@ Enter "test" in the "Create Account" section and hit the "Create Account" button
## Local testing
You can use a service like [ngrok](https://ngrok.com/) to test things out before you deploy on a real server. All you need to do is install ngrok and run `ngrok http 3000` (or whatever port you're using if you changed it). Then go to your `config.json` and update the `DOMAIN` field to whatever `abcdef.ngrok.io` domain that ngrok gives you and restart your server.
You can use a service like [ngrok](https://ngrok.com/) to test things out before you deploy on a real server. All you need to do is install ngrok and run `ngrok http 3000` (or whatever port you're using if you changed it). Then go to your `config.json` and update the `DOMAIN` field to whatever `abcdef.ngrok.io` domain that ngrok gives you and restart your server. *For local testing you do not need to specify `PRIVKEY_PATH` or `CERT_PARTH`.*
## Admin Page

Wyświetl plik

@ -0,0 +1,8 @@
{
"USER": "",
"PASS": "",
"DOMAIN": "",
"PORT": "3000",
"PRIVKEY_PATH": "",
"CERT_PATH": ""
}