DEV Community

Cover image for Deploying a web application on AWS
Kartik
Kartik

Posted on

1

Deploying a web application on AWS

Recently, I embarked on a journey to deploy a web application on Amazon Web Services (AWS), and I'm excited to share the process with you. This blog post will guide you through the steps I took to get my application up and running on AWS.

Key Steps:

  1. Local Testing:
  • Clone the repository.

  • Set up environment variables in a .env file.

  • Install dependencies and start the project using npm.

  1. AWS EC2 Setup:
  • Create an IAM user with admin permissions.

  • Launch an EC2 instance using an Ubuntu image and a t2.micro instance type.

  • Connect to the instance using SSH.

  • Update packages and install Git, Node.js, and npm.

  1. Deployment on AWS:
  • Clone the repository on the remote VM.

  • Set up environment variables.

  • Assign an Elastic IP to the EC2 instance.

  • Install dependencies and start the project.

  • Update security group inbound rules to allow traffic on the specified port.

The project is then successfully deployed on AWS.🎉

For an in-depth learning experience and detailed steps, refer to my GitHub repository.
Happy deploying! 🚀

Feel free to leave any comments or questions below, and I'll be happy to help you with your deployment journey!

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay