https://github.com/frenchbread/sn-server
https://github.com/frenchbread/sn-server
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/frenchbread/sn-server
- Owner: frenchbread
- License: mit
- Created: 2017-09-19T11:57:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-01T22:12:51.000Z (over 8 years ago)
- Last Synced: 2025-02-11T19:36:47.687Z (over 1 year ago)
- Language: JavaScript
- Size: 122 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Social Notifier Server
> API server for [sn-app](https://github.com/frenchbread/sn-app)
## Configuration file & API keys
Place configuration to `src/config/index.js` that looks like this:
```js
export default {
port: 8000,
env: 'development',
auth: {
secret: ''
},
database: {
local: 'mongodb://localhost/sn',
prod: ''
},
telegram: {
url: 'https://api.telegram.org/bot',
socials: {
twitter_token: '',
instagram_token: '',
vk_token: '',
youtube_token: ''
}
},
twitter: {
consumer_key: '',
consumer_secret: '',
access_token_key: '',
access_token_secret: ''
},
vk: {
appId: 123123,
appSecret: '',
userLogin: '',
userPassword: ''
}
}
```
## Setup
> **Note:** SN-server requires MongoDB instance up and running.
```bash
# Install dependencies
$ yarn install
# Run in development
$ yarn run dev
# Build & Run for production
$ yarn run build
$ yarn run start
```
## TODO
- [ ] Add guide explaining how to obtain API keys for social services.
## LICENSE
[MIT](https://github.com/frenchbread/sn-server/blob/master/LICENSE.md)