Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ernoma/WikiOSMark-server
Server for the WikiOSMark mobile application
https://github.com/ernoma/WikiOSMark-server
Last synced: 5 days ago
JSON representation
Server for the WikiOSMark mobile application
- Host: GitHub
- URL: https://github.com/ernoma/WikiOSMark-server
- Owner: ernoma
- Created: 2016-10-17T11:18:16.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-21T10:26:03.000Z (almost 8 years ago)
- Last Synced: 2024-08-01T12:32:27.754Z (3 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - ernoma/WikiOSMark-server - Server for the WikiOSMark mobile application (others)
README
# WikiOSMark-server
Server for the WikiOSMark mobile applicationPlease, see [WikiOSMark repository](https://github.com/ernoma/WikiOSMark) 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](https://www.mediawiki.org/wiki/Extension:OAuth).
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_SECRETIf you are using Heroku, you should see https://devcenter.heroku.com/articles/config-vars for setting the environment variables.