Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.15 KB

README.md

File metadata and controls

25 lines (18 loc) · 1.15 KB

WikiOSMark-server

Server for the WikiOSMark mobile application

Please, see WikiOSMark repository for further information.

Installing & running

The server is implemtented with Express.js, so installing and running follows the typical pattern for Node.js applications:

  1. git clone https://github.com/ernoma/WikiOSMark-server.git
  2. npm install
  3. npm start

To use all functionality you will also need to acquire Wikimedia OAuth token. When on the "OAuth consumer registration" page you should check "This consumer is for use only by your_username". Later, if needed, you can apply for grant with more rights.

After acquiring the keys you should create environment variables for them. For example in your own Ubuntu server, you can add following lines to the .bashrc file in your home directory:

export WIKI_CONSUMER_SECRET=YOUR_CONSUMER_SECRET
export WIKI_TOKEN_SECRET=YOUR_TOKEN_SECRET

If you are using Heroku, you should see https://devcenter.heroku.com/articles/config-vars for setting the environment variables.