Skip to content

Latest commit

 

History

History
58 lines (45 loc) · 1.52 KB

README.md

File metadata and controls

58 lines (45 loc) · 1.52 KB

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.