Having node 4.x through NVM is not enough
If you are on linux or mac you can run:
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
git checkout pre-master
(check with your fellow colleagues as sometimes a feature branch becomes temporarily the dev branch)
- install PostgreSQL 9.4
ensure it's well installed by running psql:
sudo -i -u postgres
psql
\q
- create a user called bulbthings with the password Bulbth1ngs
sudo -i -u postgres
createuser --interactive
bulbthings
y
sudo adduser bulbthings
#your password
Bulbth1ngs
Bulbth1ngs
- create a database called bulbthings
createdb bulbthings
-
populate it
- open a new terminal tab
- go to
application/Backend/Database/PostgreSQL - run
make cleardb migrate filldb
if that doesn't work cleanly only:
-
run
make cleardb -
create a file called tmp.dump.sql with data you can ask for from your fellow developers at bulbthings
-
run
sudo su postgres -c psql bulbthings < temp.dump.sql
- go to the API directory in
application/Backend/Restify2 - run
AUTHMS_HOST=http://auth-test.bulbthings.com AUTHMS_VERSION=v1 BOMS_HOST=http://backoffice-test.bulbthings.com BOMS_VERSION=api/v1 SECRET_KEY=edLQ1h8dvAtCRci6x8eCJ01uoZq1anC8EgqWYkVqVAFS9a95SJ4918jE8ux7KJ6M make local-restart
- go to the Web Client directory in
application/Frontend/Angular3 - run
make dev-restart
Go to localhost:9000 and use the email [email protected] and password password
If it works it's working!