Git Product home page Git Product logo

reactjs-go-mysql-sample-app's Introduction

Dockerized React JS + Golang + MySQL 3-tier Application

Architecture :

       +-------------------------+
       |         Frontend        |
       |       (React.js app)    |
       +-------------------------+
                  |
                  | HTTP requests
                  |
       +-------------------------+
       |         Backend         |
       |        (Golang app)     |
       +-------------------------+
                  |
                  | MySQL queries
                  |
       +-------------------------+
       |         Database        |
       |         (MySQL)         |
       +-------------------------+

In this architecture diagram, our application has three components: the frontend (React.js app), the backend (Golang app), and the database (MySQL). The frontend communicates with the backend via HTTP requests, and the backend communicates with the database via MySQL queries.

The frontend is responsible for rendering the user interface and handling user input. The backend provides APIs for the frontend to interact with, and handles the business logic of the application. The database stores and retrieves data for the application.

Images Details :

Simple Web Application : akshayithape02/aws-ecs-demo-1:latest

Frontend Application : akshayithape02/aws-ecs-demo-2-frontend:latest
Backend Application : akshayithape02/aws-ecs-demo-2-backend:latest
Database : akshayithape02/aws-ecs-demo-2-db:latest

How To Run :

Our Docker Compose setup provides a local development environment for our application, allowing us to easily spin up containers for the frontend, backend, and database, and define their relationships and dependencies.

docker-compose up -d 

Build & Push Images To Docker Hub(ECS Demo) :

Backend

cd backend &&  docker buildx build --platform linux/amd64,linux/arm64 -f dockerfile -t akshayithape02/aws-ecs-demo-2-backend:latest --push .

Frontend

cd backend &&  docker buildx build --platform linux/amd64,linux/arm64 -f dockerfile -t akshayithape02/aws-ecs-demo-2-frontend:latest --push .

Database

cd backend &&  docker buildx build --platform linux/amd64,linux/arm64 -f dockerfile -t akshayithape02/aws-ecs-demo-2-db:latest --push .

reactjs-go-mysql-sample-app's People

Contributors

akshayithape-devops 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.