A Boilerplate for a Simple Express Web Application build in Docker.
Includes:
- Docker
- Docker Compose
- NodeJS
- Yarn
- Nodemon
- ES2015
- Makefile
git clone git@github.com:jansanchez/nocker-wheezy-app.git
How do I know my linux username?
whoami
Go to ./docker/compose/supply.yml
and edit the line 9, replacing __YOUR_HOST_USER__
for your linux username
1: version: '2'
2:
3: services:
4: deps:
5: image: js/node-wheezy
6: command: yarn install
7: volumes:
8: - ~/yarn_cache/:/tmp/cache/yarn/
9: - ../../source/:/home/__YOUR_HOST_USER__/app/
./docker/scripts/setup.sh
docker-compose up
docker-compose down
./docker/scripts/build.sh
./docker/scripts/supply.sh
make setup
make up
make command "yarn upgrade"
make command "yarn install"
make command "yarn add express"
make command "yarn add -SD browser-sync"
make down
make build
make install
make