DataToKnowledge / wheretolive.it

Apache License 2.0
0 stars 0 forks source link

Wheretolive.it Website


This project is made using node.js angular.js bower.io and some other stuffs

Usage

Clone this project with referenced git submodules

git clone --recursive git@github.com:DataToKnowledge/wheretolive.it.git
cd wheretolive.it

Init submodule

cd wtlElasticUI
npm install
grunt typescript:dist
grunt uglify

Test local

  1. npm install
  2. bower install
  3. npm install grunt-karma --save-dev
  4. bower install angular-google-maps
  5. bower install elasticsearch
  6. bower install ngstorage --save then "grunt test" to run tests or "grunt serve" to run the web service Per creare il build:
  7. grunt serve:dist (crea la build e la lancia nel web server di sviluppo) 2) oppure solo grunt build

Test with docker

  1. create the dist folder

    grunt build

  2. Install Docker.

  3. Build an image from Dockerfile: docker build -t="wheretolive/wtl" ./

  4. run the local docker docker run -d -p 80:80 --name wtl wheretolive/wtl

Deploy

  1. run the command deploy.sh
  2. tar the dist
  3. move to the servers
  4. untar the folder and cd inside
  5. build the docker docker build -t data2knowledge/wtl-site:1.3.2 .
  6. run it docker rm -f wtl-site && docker run -dt -p 80:80 --name wtl-site data2knowledge/wtl-site:1.3.2