-
Notifications
You must be signed in to change notification settings - Fork 27
Setup Instruction
Note: If you use docker, just check With docker
section.
-
Install useful command-line tools globally:
$ npm install -g bower karma
To fetch dependent packages, enter the webapplate folder and run
$ npm install
To bind the git pre-commit code style check, run command:
$ gulp githooks
Now you are all set. The above instructions only need to be executed once.
-
While you are editing code, run command:
$ gulp test
To automaticly monitor and trigger all test when you change the code.
Webapplate come with docker support. It helps you auto configure the development environment and could be deploy to Amazon Web Service or Google Cloud Platform.
Run
docker build -t webapplate/webapplate .
To build image at first time.
In linux, run
docker run webapplate/webapplate
to execute the server. You could connect to localhost:8000
on browser to see the web page.
In other platform docker needs to run within boot2docker
VM, you could get VM host ip via command
$ boot2docker ip
Then run command
docker run --rm -i -t -p 8000:8000 webapplate/webapplate
To forwarding port to your desktop. Connect to $(boot2docker ip):8000
on browser to see the web page.
(generally is http://192.168.59.103:8000/
)