DEV Community

VINOTH S
VINOTH S

Posted on • Updated on

Deploying a Node.js App with AWS Elastic Beanstalk

Amazon's Elastic Beanstalk makes it easy to deploy and scale your applications with load balancing, health monitoring, & auto-scaling. In this blog, I will walk you through how to deploy a Node JS application with AWS Elastic Beanstalk.

Step 1 - Creating a Simple Node JS Application
We can use the express-generator tool to whip up a quick Node application by creating a new directory and running the following command inside it:
npx express-generator

Uploading image

class Human {
protected name: string="person-one";
protected age: 21;
constructor(name: string="person-one", age : 21) {
this.name= name;
this.age = age;
}
}
class Employee extends Human {
protected department:string="computer-science";
protected batch:string="2019";
protected role:string="Trainee";
constructor(name:string="person-one",age:21,department:string="computer-science",batch:string="2019",role:string="Trainee"){
super(name,age);
this.department = department;
this.batch=batch;
this.role=role;
}
getInfo(){
console.log("Name: " +this.name);
console.log("Age: " +this.age);
console.log("Department: "+this.department);
console.log("Batch: "+this.batch);
console.log("Role: "+this.role);
}
}

Top comments (0)