Code Monkey home page Code Monkey logo

3tier_app's Introduction

Docker MySQL Node.js React.js App

App

"Docker MySQL Node.js React.js App" is a comprehensive demonstration repository showcasing the capabilities of Docker and Docker Compose. With a focus on simplicity and efficiency, this project illustrates the integration of Docker containers for deploying a full-stack application.

The repository features a React.js frontend application where users can enter their data and submit it. The submitted data is then securely transmitted to a Node.js backend server, which processes and persists it in a MySQL database. By utilizing Docker Compose, the entire application stack, including the frontend, backend, and database, can be effortlessly orchestrated and managed as isolated containers.

Setup

To set up the project, follow the steps below:

Prerequisites

Before running the project, make sure you have the following installed:

Installation

  1. Clone the repository:

    git clone https://github.com/prasad0808/3tier_app.git
  2. Navigate to the project directory:

    cd project-directory
  3. Download the script.sql file and place it in the project directory.

  4. Run the following command to build and start the Docker containers:

    docker-compose up --build
  5. Login to MySQL using the specified port, username, and password:

    • Host: localhost
    • Port: 3307
    • Username: root
    • Password: pass123

    You can use a MySQL client such as MySQL Workbench or phpMyAdmin to log in to the MySQL server.

  6. Initialize the MySQL database by executing the script.sql file.

  7. Access the application by opening the following URL in your web browser:

    http://localhost:3001
    

    This will take you to the ReactJS application interface where you can interact with the project.

Usage

This example serves as a beginner-friendly resource to learn about full-stack Docker containerization in a practical application. It provides a simplified implementation of a full-stack application using React.js, Node.js, and MySQL, all orchestrated with Docker Compose.

3tier_app's People

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.