Skip to content

Commit 9d2de2c

Browse files
committed
update README and code cleanup
1 parent ab9de06 commit 9d2de2c

File tree

2 files changed

+52
-7
lines changed

2 files changed

+52
-7
lines changed

README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,32 @@ make test
7676

7777
Ensure that all test cases pass and pay attention to any output that is displayed. This step should validate that the application is functioning as expected.
7878

79+
Alternatively, you can also check the application by curling the ALB endpoint. You can find the ALB endpoint in the LocalStack console or by running the following command:
80+
81+
```bash
82+
awslocal elbv2 describe-load-balancers --names serviceslb --query 'LoadBalancers[0].DNSName'
83+
```
84+
85+
Now you can curl the endpoint using the following command:
86+
87+
```bash
88+
curl serviceslb.elb.localhost.localstack.cloud:4566
89+
```
90+
91+
The output should be similar to the following:
92+
93+
```bash
94+
{"message":"Hello, Welcome to Localstack!"}
95+
```
96+
97+
### Step 4: Clean Up 🧹
98+
99+
To delete the application from LocalStack, run the following command:
100+
101+
```bash
102+
make destroy-local
103+
```
104+
79105
## Deploying the Application on AWS ☁️
80106

81107
### Step 1: Deploy the Application 🚢
@@ -96,6 +122,32 @@ Run the application test cases using the following command:
96122
make test
97123
```
98124

125+
Alternatively, you can also check the application by curling the ALB endpoint. You can find the ALB endpoint in the AWS console or by running the following command:
126+
127+
```bash
128+
aws elbv2 describe-load-balancers --names serviceslb --query 'LoadBalancers[0].DNSName' --output text
129+
```
130+
131+
Now you can curl the endpoint using the following command:
132+
133+
```bash
134+
curl <ALB_ENDPOINT-FROM_ABOVE_COMMAND>
135+
```
136+
137+
The output should be similar to the following:
138+
139+
```bash
140+
{"message":"Hello, Welcome to Localstack!"}
141+
```
142+
143+
## 🧹 Cleaning Up
144+
145+
To delete the application from AWS, run the following command:
146+
147+
```bash
148+
make destroy
149+
```
150+
99151
## 🚀 Configuring Visual Studio Code for Efficient Remote Node.js Debugging
100152

101153
Setting up Visual Studio Code for remote Node.js debugging enables smoother and more intuitive development workflows. This guide will walk you through the essential steps to configure your VSCode efficiently for remote debugging of your Node.js applications. 🛠️🔍

iac/awscdk/lib/repo-stack.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ const ec2 = require('aws-cdk-lib/aws-ec2')
55
const ecs = require('aws-cdk-lib/aws-ecs')
66
const elbv2 = require('aws-cdk-lib/aws-elasticloadbalancingv2')
77
const ecr = require('aws-cdk-lib/aws-ecr')
8-
// const cdk = require('@aws-cdk/core')
9-
10-
// const sqs = require('aws-cdk-lib/aws-sqs');
118

129
class RepoStack extends Stack {
1310
/**
@@ -62,10 +59,6 @@ class RepoStack extends Stack {
6259
],
6360
essential: true
6461
})
65-
// container.addPortMappings({
66-
// containerPort: 3000,
67-
// protocol: ecs.Protocol.TCP
68-
// })
6962

7063
// create service
7164
const service = new ecs.FargateService(

0 commit comments

Comments
 (0)