books-fe-polymer-dev-sample
v1.0.0
Published
This code has been created for following articles.
Downloads
4
Readme
This code has been created for following articles.
- Developing Front-end Microservices With Polymer Web Components and Test-driven Development ** The First Component ** Polishing The First Component ** The Second Component ** Styling And Communication ** Using Microservices
Build Containers
sudo docker build -t vfarcic/books-fe-polymer-dev -f Dockerfile.dev .
sudo docker push vfarcic/books-fe-polymer-dev
sudo docker-compose -f docker-compose-build.yml run dist
sudo docker build -t vfarcic/books-fe-polymer .
sudo docker push vfarcic/books-fe-polymer
Development
Without Vagrant
sudo docker-compose -f docker-compose-dev.yml up -d
sudo docker-compose -f docker-compose-dev.yml logs
With Vagrant
vagrant up dev
vagrant ssh dev
cd /vagrant
sudo docker-compose -f docker-compose-dev.yml up -d
sudo docker-compose -f docker-compose-dev.yml logs
Production Simulation
sudo docker-compose -f docker-compose-sim.yml up
Production
sudo docker-compose up -d
Testing
** [完整] (http://localhost:8080/) ** [只有polymer] (http://localhost:8081/ ) ** [microservice] (http://192.168.57.35:8082/components/tc-books/demo/index.html) ** http://192.168.57.35:8080/api/v1/books
Document
https://technologyconversations.com/2015/08/09/developing-front-end-microservices-with-polymer-web-components-and-test-driven-development-part-55-using-microservices/