Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.34 KB

README.md

File metadata and controls

38 lines (30 loc) · 1.34 KB

nodejs-app

This is a basic Express app with some basic routes. It also includes Terraform files that create a CI/CD pipeline and ECS cluster with an ALB.

Architecture diagram

Architecture diagram

Getting Started

To get started with the app, you can follow these steps:

  • Clone the repository to your local machine:
git clone https://github.com/rimvydascivilis/nodejs-app.git
  • Install the dependencies:
cd nodejs-app
npm ci
  • Start the app:
npm run start

Terraform instructions

  • Install Terraform.
  • Navigate to the terraform directory in the app.
  • You will need to change the aws_account_id, codestar_connection_arn variables in the variables.tf file to match your AWS account ID and the ARN of the CodeStar connection, here are aws guides on how to create a connection.
  • Run terraform init to initialize Terraform.
  • Run terraform apply to create the resources in AWS.

Routes

The following routes are available in the app:

  • GET /hello - Returns a simple "Hello, world!" message.
  • POST /hello - Returns a personalized greeting with the given name in the request body.
  • GET /health - Returns a simple "OK" message.