Giter VIP home page Giter VIP logo

yassa122 / bookstoreapp-aws Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lisamekhael/bookstorecloud

0.0 0.0 0.0 60.78 MB

A simple web application using a JavaScript stack (substituting MongoDB with DynamoDB), and host it on AWS. The architecture is designed to provide high availability across multiple EC2 instances, manage image uploads using S3, and perform image resizing with Lambda functions.

JavaScript 98.61% CSS 0.19% HTML 1.20%

bookstoreapp-aws's Introduction

AWS Web Application Hosting

This repository contains a project focused on designing and implementing a web application hosted on AWS. The project leverages various AWS services, including EC2, Lambda functions, Elastic Load Balancing (ELB), and DynamoDB, to ensure high availability, scalability, and efficient data management.

Project Overview

The primary objective of this project is to create a simple web application using a JavaScript stack (substituting MongoDB with DynamoDB), and host it on AWS. The architecture is designed to provide high availability across multiple EC2 instances, manage image uploads using S3, and perform image resizing with Lambda functions.

Features

  • EC2 Instances: Host the web application on multiple EC2 instances for high availability.
  • Elastic Load Balancer (ELB): Distribute incoming traffic across multiple EC2 instances to ensure reliability and performance.
  • DynamoDB: Use DynamoDB for scalable and managed NoSQL database operations.
  • Lambda Functions: Implement serverless functions for image resizing and other background tasks.
  • S3: Store and manage image uploads in S3 buckets.
  • AWS SDK: Interact with various AWS services programmatically.
  • Docker: Containerize the application for consistent deployment.

Getting Started

To get started with the project, follow the steps below:

Prerequisites

  • AWS account with access to EC2, S3, DynamoDB, Lambda, and ELB services.
  • Node.js and npm installed on your local machine.
  • Docker installed on your local machine.

Setup Instructions

  1. Clone the Repository

    git clone https://github.com/yourusername/aws-web-app-hosting.git
    cd aws-web-app-hosting
  2. Install Dependencies

    npm install
  3. Set Up AWS Resources

    • EC2 Instances: Launch multiple EC2 instances and deploy the web application.
    • ELB: Set up an Elastic Load Balancer to distribute traffic across EC2 instances.
    • DynamoDB: Create a DynamoDB table for your application data.
    • S3 Buckets: Create S3 buckets for storing images.
    • Lambda Functions: Create Lambda functions for image resizing and configure S3 triggers.
  4. Configure AWS SDK

    • Update the config.js file with your AWS credentials and resource details.
    module.exports = {
        aws: {
            region: 'your-region',
            accessKeyId: 'your-access-key-id',
            secretAccessKey: 'your-secret-access-key',
            s3Bucket: 'your-s3-bucket-name',
            dynamoDBTable: 'your-dynamodb-table-name'
        }
    };
  5. Dockerize the Application

    • Build the Docker image:
    docker build -t your-image-name .
    • Run the Docker container:
    docker run -p 3000:3000 your-image-name
  6. Deploy the Application

    • Push the Docker image to a container registry (e.g., Amazon ECR).
    • Deploy the Docker containers on your EC2 instances.
  7. Run the Application

    • Access the web application through the ELB endpoint.

bookstoreapp-aws's People

Contributors

lisamekhael avatar yassa122 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.