big-meel / node-todo-infrastructure

Implementation of an infrastructure running a Node.js Todo app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node Todo Infrastructure

Implementation of an infrastructure running a Node.js Todo app

Prerequisites

Please ensure that the following are installed

Setup Docker Compose

  1. 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.

  1. Run docker pull bigmeel94/node-todo for the pre-built image outlined in the docker-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.

  1. Run docker-compose up -d to test app. (docker-compose down to stop containers) View app on localhost:8080

  2. Initialize infrastructure with terraform init.

  3. Inspect Plan with terraform plan

  4. Deploy Infrastructure terraform apply

About

Implementation of an infrastructure running a Node.js Todo app

License:MIT License


Languages

Language:JavaScript 46.3%Language:HTML 44.0%Language:HCL 8.3%Language:Dockerfile 1.4%