Front end system
You have 4 options to run project. I recommend to try run project using AZK
- Install node
npm install -g gulp
npm install
gulp
node server.js
Run static server
If you don't want to install node and other global packages. You need
- docker
service docker start
Start docker service if not runningdocker build -t frontkit ./docker
Build vm with name "frontkit"docker run -itd --name frontkit -p 127.0.0.1:80:80 -p 127.0.0.1:3000:3000 -v ${PWD}:/var/www frontkit || docker start frontkit
docker exec --user www-data -it frontkit bash
Connect to container
- Install azk
- Mac
curl -sSL http://azk.io/install.sh | sh
- Linux
wget -nv http://azk.io/install.sh -O- -t 2 -T 10 | sh
- Mac
azk start -vv
Run projectazk shell
Connect to containerazk stop
To stop the project
-
./vm up
Run container -
./vm ssh
Connect to container -
Install npm modules and run tasks
./vm shell
Connect to containernpm install
Install npm dependenciesgulp
Build and run BrowserSync
-
./vm stop
Stop the container
./vm
Is helper for docker-compose
npm install
Install dependenciesgulp
Run default taskgulp watch
Watch files for changesgylp build:clean
Cleanup dist directorygulp scss
Compile cssgulp js
Compile jsgulp jade
Compile jade filesgulp images
Optimize images