Installation on Ubuntu 14.04
To use our SaaS, you will need to install these tools:
- docker
- docker-machine
- docker-compose
$curl -sSL https://get.docker.com/ | sh
$sudo usermod -aG docker ubuntu
After installation finished, you can verify your work by runing docker without sudo
$ docker run hello-world
After install Docker on you machine, you need to install Docker Machine. Download the Machine binary to somewhere in your $PATH (in my machine, i choose /usr/local/bin)
$ sudo curl -L https://github.com/docker/machine/releases/download/v0.4.0/docker-machine_linux-amd64 > /usr/local/bin/docker-machine
$ chmod a+x /usr/local/bin/docker-machine
$ docker-machine -v
We need to install docker-compose
$sudo curl -L https://github.com/docker/compose/releases/download/VERSION_NUM/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
If previous command failed, you can try to use pip instead:
$sudo pip install -U docker-compose
$sudo chmod a+x /usr/local/bin/docker-compose (Optional, if you use pip method don't need to do this)
To use our frontend, you need to install these packages:
- NODEJS (recommended node 0.10.37)
- NPM
- REDIS
- SQLITE3
- GIT
- GRUNT
- BOWER
After install all these, you need to run:
$ bower install
$ npm install
Before running the application, you have to create config file to match with your enviroment. I create two sample config files. One for client, the other one for server.
cp config/client-default.js config/client-dev.js
cp config/default.js config/dev.js
NODE_ENV=dev npm start
grunt test