Skip to content

Latest commit

 

History

History
41 lines (22 loc) · 930 Bytes

README.md

File metadata and controls

41 lines (22 loc) · 930 Bytes

ZGallery

This is the ZaiusDr Photo Gallery project. It's just a POC to practice a little bit with TDD, Node.js and a bit of Front-End development with Javascript. :D

BTW it will act as showcase for my pictures!

Hacking

Build docker image

docker build -t zgallery .

Install Node Modules

If you don't want to install node package manager locally:

docker run --rm -v "$PWD":/src zgallery npm install

Run container

docker run --name zgallery -d -v "$PWD":/src -p 8000:3000 -p 9229:9229 zgallery

Then you can stop/start the container again with:

`docker stop zgallery``

docker start zgallery

Deploy AWS Pipeline

aws cloudformation update-stack --stack-name "zgallery-pipeline" --template-body file://infrastructure/pipeline.yaml --capabilities CAPABILITY_IAM

Testing

Run:

docker exec -it zgallery npm test