This project is generated with yo angular generator version 0.11.1.
sudo npm install --global npm@latest
sudo npm install --global yo bower grunt-cli
sudo npm install --global [email protected] generator-karma
yo
npm install jasmine-core
npm install phantomjs
npm install karma
npm install grunt-karma
sudo npm cache clean && npm install gruntjs/grunt-contrib-imagemin
Fix CSS issue
Add to index.html OR
Add this to bower.json:
"overrides": {
"bootstrap": {
"main": [
"less/bootstrap.less",
"dist/css/bootstrap.css",
"dist/js/bootstrap.js"
]
}
}
bower install angular-material (https://github.com/angular/material - include cdn css link)
Run grunt for building and grunt serve for preview.
grunt serve:dist will preview what gets generated in dist
Running grunt test will run the unit tests with karma.
Run docker-machine start to setup virtual machine
eval "$(docker-machine env default)" will set default as the vm's environmentCurrently jwill824/gdg_webapp is set to build and push anytime you make a git commit. So you do not have to do anything after you develop a feature.
Run docker build -t jwill824/gdg_webapp:latest . to build the docker container
Then with docker run --name website -p 9000:80 -d jwill824/gdg_webapp:latest you will be able to preview what gets run in the docker container, in this case it's the site's generated dist contents
Go here after you run the latest command http://192.168.99.101:9000
Once you like what you see, push your container, docker push jwill824/gdg_webapp:latest
Content type
Image
Digest
Size
100.3 MB
Last updated
over 8 years ago
docker pull jwill824/gdg_webapp