Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Setup Instruction

gasolin edited this page Jun 7, 2015 · 2 revisions

Note: If you use docker, just check With docker section.

  1. Install node.js or io.js

  2. 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.

  3. While you are editing code, run command:

    $ gulp test
    

    To automaticly monitor and trigger all test when you change the code.

With docker

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/)

Clone this wiki locally