-
Notifications
You must be signed in to change notification settings - Fork 3
OLAP explorer installation
-
Clone the following repositories:
-
https://github.com/Stiivi/cubes (checkout commit
4522b4e140e569d48024f86e59c893d5350dda03
) - https://github.com/johngriffin/datashuttle_tools
- https://github.com/sidewinderlabs/dataShuttle
-
https://github.com/Stiivi/cubes (checkout commit
-
Install cubes (make sure you have SQLAlchemy installed first)
-
Import the
datashuttle_tools/scripts/import/sql/nic_indicators.sql.bz2
file into a MySQL database -
Edit the
datashuttle_tools/scripts/import/import.php
file and change the following values in the$config
array (please ensure that the database user has permission to create tables):$config['db']['user']
$config['db']['pass']
$config['db']['name']
-
Run the import script (this will take a long time):
./import.php db
-
Edit the
datashuttle_tools/scripts/import/export-geojson.php
file and change the following values in the$config
array:$config['db']['user']
$config['db']['pass']
$config['db']['name']
-
Create an export of the areas boundaries:
./export-geojson.php > areas.json
-
Move the newly created
areas.json
file todataShuttle/cubes/public/data/
-
Copy
dataShuttle/cubes/model.json
todatashuttle_tools/scripts/import/
-
Edit
datashuttle_tools/scripts/import/build-cubes-view.py
and set thedb_connect
variable to your database connection string -
Run the cubes view build script:
python build-cubes-view.py
-
Create a
VirtualHost
entry in your Apache configuration for your site based on the following template:<VirtualHost *:80>
ServerName cubes.datashuttle.dev DocumentRoot /var/www/dataShuttle/cubes/public <Directory /var/www/dataShuttle/cubes/public> Order allow,deny Allow from all </Directory> AddType application/json .json WSGIScriptAlias /api /var/www/dataShuttle/cubes/public/api/datashuttle.wsgi
-
Edit
dataShuttle/cubes/api.ini
and updatepath
to point to yourmodel.json
file and seturl
to your database connection string -
Restart Apache
-
Visit your new site!