Skip to content

elroyK/hyperRail

 
 

Repository files navigation

iRail.be

iRail.be is a web-application that uses data from http://api.irail.be (source code.) to create a hyper-media driven application for the Belgian railway company.

Looking for data? Check https://hello.irail.be for more info

Features

Want more features? Please do contribute by adding feature requests. Are you a developer? We accept pull requests!

Install locally for development purposes

Next to following these steps, you can also use vagrant. After cloning the repo, do vagrant up and a new virtual machine will be set up.

Step 0: Requirements and clone

  • PHP 5.3+ for Laravel project
  • PHP 5.4+ for Way/Generators, if you have 5.4+ you can uncomment Way/Generators in /app/config/app.php
  • Apache

Clone the repository:

git clone https://github.com/iRail/hyperRail.git

Step 1: Install dependencies

Run composer update. If you do not yet have composer, get it here: http://getcomposer.org

Step 2: Update bootstrap/start.php for environments

Optional, but can be useful.

Step 3: make app/storage writeable

chmod -R 777 app/storage

Step 4: Set up hostname

In /app/config/app.php set the following to your personal hostname/preferences:

'url' => 'http://irail.dev',    // with http
'url-short' => 'irail.dev',     // without http

Step 5: Set up resources

  • npm install
  • npm run update-stations
  • bower install
  • grunt

Step 6: You're ready!

Usually you should be ready to get started by visiting the hostname you have set up. If it does not work, log an issue. We'll help you out and fix the documentation for everyone else.

In case you just want to update the stations list to the latest version, run: npm run update-stations

License

We hereby put this work in the public domain under a CC0 license!

Feel free to attribute us at http://hello.irail.be.

About

The repo for the iRail.be webapp

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 80.0%
  • PHP 10.1%
  • CSS 9.8%
  • Other 0.1%