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.
To install and run the Users Service API locally, follow these steps:
-
Clone the repository:
git clone https://github.com/zircon-tech/webinar/users-service-api.git cd users-service-api
-
Build the docker image:
docker build -t users-service-api .
-
Start the container:
docker run -p 8080:8080 users-service-api
This project comes with a Terraform configuration to deploy the Users Service API to AWS. To deploy the API, follow these steps:
- Install Terraform:
brew install terraform
- Define your variables in
terraform.tfvars
:region = "us-east-2" ...
- Initialize Terraform:
terraform init
- Plan the deployment:
terraform plan -var-file="terraform.tfvars" -out="out.plan"
- Deploy the changes:
terraform apply "out.plan"
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
.
This project is licensed under the MIT License.