Skip to content

frenchbread/sn-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social Notifier Server

API server for sn-app

Configuration file & API keys

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: ''
  }
}

Setup

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

TODO

  • Add guide explaining how to obtain API keys for social services.

LICENSE

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors