Skip to content
robelkin edited this page Sep 13, 2010 · 4 revisions

Setup to run on your local machine, firstly download or checkout from the repository. Probably best to checkout to receive the latest updates as things change, and to submit updates if you find anything incorrect!

Once you have all the files on your local machine, place them in the web directory you serve websites from, and set up your virtual servers and all that goodness as usual. The scripts contained here are all in php (for the time being until someone writes something different), so you will need to ensure that you have this installed, as well as mysql (or at least the ability to connect to some mysql db).

You need to run the read_cif.php file in the the metro and/or nirailways folder to import the data into the db. Firstly though, ensure that there is relevant data files in the /data/ folder. If you need to find these files, you can hit up www.opendatani.info to get them.

You will then be able to run the included scripts, which import the data into your chosen db. A word of warning, the amount of data to import is large, so you will need to watch out if you are planning on using a db not local to your machine. Try and run the script in a location local to the db you are importing to!

Clone this wiki locally