https://github.com/jplusplus/rts-parlometre-generator
HTTP server written in R to handle maps generation for http://parlometre.ch
https://github.com/jplusplus/rts-parlometre-generator
Last synced: 6 months ago
JSON representation
HTTP server written in R to handle maps generation for http://parlometre.ch
- Host: GitHub
- URL: https://github.com/jplusplus/rts-parlometre-generator
- Owner: jplusplus
- License: lgpl-3.0
- Created: 2015-06-12T09:58:35.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-02T09:21:24.000Z (almost 11 years ago)
- Last Synced: 2024-04-14T04:55:28.472Z (about 2 years ago)
- Language: R
- Homepage:
- Size: 222 KB
- Stars: 2
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RTS Parlometre Generator
HTTP server written in R to handle maps generation for [parlometre.ch](http://parlometre.ch).
## Install
On Ubuntu/Debian, install R with:
sudo apt-get install r-base
Then run:
make install
An invite may ask you to choose a CDN to download external packages.
## Run
Simply enter this command:
make run
Then go to [127.0.0.1:8080/custom/distance?hash=XXXX](http://127.0.0.1:8080/custom/distance?hash=3231333123324133312321321).
If you want to run the server on a different port, change the environment variable `$PORT`value.
export PORT=8181
make run
## Deploy on heroku
First, you need to create an app using an Heroku Buildpack for R:
heroku create --stack cedar-14 --buildpack http://github.com/virtualstaticvoid/heroku-buildpack-r.git\#cedar-14
As you can see a Procfile is already present in the projet. It will take care of
launching the server for you.
Now that your application is ready, you juste have to push it to heroku:
git push heroku master