You'll need a dump of the staging database. Save this to staging.full.dump.sql
.
$ mkdir dto
$ cd dto
$ git clone https://github.com/AusDTO/dto-digitalmarketplace-frontend.git
$ git clone https://github.com/AusDTO/dto-digitalmarketplace-buyer-frontend.git
$ git clone https://github.com/AusDTO/dto-digitalmarketplace-api.git
$ git clone https://github.com/AusDTO/dto-digitalmarketplace-supplier-frontend.git
$ git clone https://github.com/AusDTO/dto-digitalmarketplace-admin-frontend.git
Move the database dump to dto-digitalmarketplace-api/staging.full.dump.sql
.
Install virtualenv
if you don't already have it
$ cd dto-digitalmarketplace-api
$ nvm use stable
$ virtualenv venv
$ make requirements_for_test
Now install Postgres if you don't already have it
$ createdb digitalmarketplace
$ psql digitalmarketplace < staging.full.dump.sql
$ cd dto-digitalmarketplace-frontend
$ nvm use stable
$ virtualenv venv
Install yarn & nvm if you don't already have it installed
$ nvm use stable
$ yarn install
$ cd dto-digitalmarketplace-buyer-frontend
$ nvm use stable
$ virtualenv venv
You should already be using Homebrew. If not install it.
$ brew install cairo
$ brew install pango
$ brew install lighttpd
$ pip install -r requirements.txt
$ cd dto-digitalmarketplace-supplier-frontend
$ nvm use stable
$ virtualenv venv
$ pip install -r requirements.txt
$ npm install
$ bower install
$ npm run frontend-build:development
$ cd dto-digitalmarketplace-admin-frontend
$ nvm use stable
$ virtualenv venv
$ npm install
$ make requirements frontend_build
Icky: Update the sudo password in setup.scpt
.
Run setup.sh
and point your browser at http://localhost:8000