Skip to content

ernoma/WikiOSMark-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Server for the WikiOSMark mobile application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published