Wiki
Clone wikisabroso / Sabroso development installation
Sabroso development installation
Note: These instructions allow for use of the development version of sabroso. Sabroso is intended to be used as a development platform for other software and not to be used by itself. Recommended launch instructions for derived applications with be included in version 0.4.0.
(Written for Ubuntu 16.04 LTS -- modify appropriately for other platforms. When you see <repo>, substitute that with the location of the cloned repository.)
-
Clone git repository
-
Ensure installation of system dependencies
MongoDB (follow instructions for community installation here): https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04
Python 3.5+ (should be installed on Ubuntu 16.04+ by default)
npm:
- sudo apt-get install nodejs nodejs-legacy npm
-
to get version 6.x, follow instructions on this page: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04.
yarn: Follow https://yarnpkg.com/lang/en/docs/install/, yarn installation varies for different systems.
-
Setup python dependencies
If you wish to install dependencies using pip3, ensure you first have it installed by issuing: sudo apt-get install python3-pip
See <repo>/python/requirements.txt. You can install these using pip3 (in some cases you may need to issue a sudo pip3 install) on ubuntu though there might be trouble with the requirements for numpy/scipy/pandas/pyyaml. Use the precompiled packages if desired to avoid trouble, which are python3-numpy, python3-scipy python3-pandas, python3-yaml.
-
Setup node dependencies
cd <repo>/js
yarn
-
Start Django REST engine (both this and the front end need to be running separately)
export PYTHONPATH=<repo>/python
cd <repo>/python/web
python3 manage.py migrate
python3 manage.py createsuperuser
python3 manage.py addadmindata <repo>/python/examples/d3_scatter/config.yml
python3 manage.py runserver 0.0.0.0:5000
-
Start front end (both this and the REST engine need to be running separately)
-
cd
<repo>/js
-
If you are running services from a remote host, you will need to modify
<repo>/js/app/constants.js
and change the constantsapi_urls.base
andapi_urls.login_base
to match the public URL for your remote host -
yarn start
-
-
After browsing to the local front-end (http://127.0.0.1:3000 by default), you may login with your superuser credentials. Create a project and when you are ready to upload data, you will find a sample dataset at <repo>/python/examples/d3_scatter/example_data.csv which you may upload for testing.
Updated