Skip to content

This repository provides a sample demo application to be used in the context of the Webinar presentation about CI/CD pipelines in AWS

Notifications You must be signed in to change notification settings

zircon-tech/webinar-users-service-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Users Service API

This project is a simple demo Node.js application for a Users Service API. It contains the implementation for a Lambda function designed to run inside a Docker container. The CI/CD is built using CodePipeline, CodeBuild and CodeDeploy services on AWS.

image

Installation

To install and run the Users Service API locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/zircon-tech/webinar/users-service-api.git
    cd users-service-api
  2. Build the docker image:

    docker build -t users-service-api .
  3. Start the container:

    docker run -p 8080:8080 users-service-api

Deployment

This project comes with a Terraform configuration to deploy the Users Service API to AWS. To deploy the API, follow these steps:

  1. Install Terraform:
    brew install terraform
  2. Define your variables in terraform.tfvars:
    region = "us-east-2"
    ...
  3. Initialize Terraform:
    terraform init
  4. Plan the deployment:
    terraform plan -var-file="terraform.tfvars" -out="out.plan"
  5. Deploy the changes:
    terraform apply "out.plan"

Usage

Once the server is running, you can interact with the API using tools like Postman or curl. The server will be running on http://localhost:8080.

License

This project is licensed under the MIT License.

About

This repository provides a sample demo application to be used in the context of the Webinar presentation about CI/CD pipelines in AWS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published