API server for sn-app
Place configuration to src/config/index.js that looks like this:
export default {
port: 8000,
env: 'development',
auth: {
secret: '<jwt_secret>'
},
database: {
local: 'mongodb://localhost/sn',
prod: ''
},
telegram: {
url: 'https://api.telegram.org/bot',
socials: {
twitter_token: '<twitter_token>',
instagram_token: '<instagram_token>',
vk_token: '<vk_token>',
youtube_token: '<youtube_token>'
}
},
twitter: {
consumer_key: '',
consumer_secret: '',
access_token_key: '',
access_token_secret: ''
},
vk: {
appId: 123123,
appSecret: '',
userLogin: '',
userPassword: ''
}
}Note: SN-server requires MongoDB instance up and running.
# Install dependencies
$ yarn install
# Run in development
$ yarn run dev
# Build & Run for production
$ yarn run build
$ yarn run start- Add guide explaining how to obtain API keys for social services.