Skip to content

Commit

Permalink
Add config-sample.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenna committed Jan 23, 2017
1 parent c5e4ba5 commit dd52503
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ Chatbot for Telegram.
1. Start MongoDB
2. Set the configuration variables at `config.json`
3. Run `npm start` from root path
4. Access `/views/login` with a HTTPS protocol (try **ngrok** for tunneling)
5. Login
4. Access `/views/login` over a HTTPS protocol (try **ngrok** for tunneling)
5. Login (set Facebook Account Kit Ser URLs to allow the HTTPS address you are using)
6. Talk

### Configuration

Configuration variables are set in config.json, which has:
Configuration variables are set in config.json.

Use the `config-sample.json` to set your variables and rename it to `config.json`.

a `dev` property for development variable,

Expand Down Expand Up @@ -40,6 +42,11 @@ and `default` property for shared environment variables.
}
}
````

## Tests

To run tests enter `npm test` or `npm run test-watch` (nodemon watch).

---

### Next Steps
Expand Down
19 changes: 19 additions & 0 deletions config-sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"dev": {
"MONGODB_URI": "mongodb://localhost:27017/telebot"
},

"test": {
"MONGODB_URI": "mongodb://localhost:27017/telebotTest"
},

"default": {
"PORT": ,

"BOT_TOKEN": ,

"FB_API_VERSION": ,
"FB_APPID": ,
"FB_APP_SECRET":
}
}

0 comments on commit dd52503

Please sign in to comment.