Implementation of an infrastructure running a Node.js Todo app
- Docker Engine (https://docs.docker.com/engine/install/)
- Node.js
- Docker Compose
- Terraform CLI
- AWS CLI
- Clone repo & run dependencies
git clone https://github.com/big-meel/node-todo-infrastructure
cd node-todo-infrastructure
npm install
NOTE: The npm install
command is included should you wish to install dependencies locally for testing purposes.
The Docker Images created in the proceeding step with have all the necessary dependencies and variables containerized, hence the
command is unnecessary.
- Run
docker pull bigmeel94/node-todo
for the pre-built image outlined in thedocker-compose.yml
, node-tod service.
Should you need to modify the Dockerfile then you may use docker build -t image-name .
to create
a custom image and add it to the node-todo
service image attribute.
-
Run
docker-compose up -d
to test app. (docker-compose down
to stop containers) View app onlocalhost:8080
-
Initialize infrastructure with
terraform init
. -
Inspect Plan with
terraform plan
-
Deploy Infrastructure
terraform apply