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!

Image of Timescale

Timescale โ€“ the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

Sentry image

See why 4M developers consider Sentry, โ€œnot bad.โ€

Fixing code doesnโ€™t have to be the worst part of your day. Learn how Sentry can help.

Learn more