-
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.bz2file into a MySQL database -
Edit the
datashuttle_tools/scripts/import/import.phpfile and change the following values in the$configarray (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.phpfile and change the following values in the$configarray:$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.jsonfile todataShuttle/cubes/public/data/ -
Copy
dataShuttle/cubes/model.jsontodatashuttle_tools/scripts/import/ -
Edit
datashuttle_tools/scripts/import/build-cubes-view.pyand set thedb_connectvariable to your database connection string -
Run the cubes view build script:
python build-cubes-view.py -
Create a
VirtualHostentry 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.iniand updatepathto point to yourmodel.jsonfile and seturlto your database connection string -
Restart Apache
-
Visit your new site!