Skip to content

RajeshPat87/fullstack-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Setup using simple Frontend Backend Setup

Following things are used in the setup

  • Node.js - Backend
  • React.js - Frontend
  • MySQL - Database
  • Redis - Caching the visit count

How to Run this Project

Make sure Docker is installed and running on your computer/server.

  1. Run the following command to create the docker containers
docker compose up --build
  1. Create the Tables in MySQL
docker exec -i fullstack-app-mysql-1 \
  mysql -u root -ppassword  -e "
  CREATE DATABASE IF NOT EXISTS testdb;
  USE testdb;
  CREATE TABLE IF NOT EXISTS messages(
    id INT PRIMARY KEY AUTO_INCREMENT,
    message VARCHAR(256)
  );
"
  1. Now got to the Browser and hit http://localhost:5001/health For hitting the Backend

  2. To hit the frontend go to the http://localhost:3000

Congratulations, You have successfully installed and run the docker containers 🚀

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 49.5%
  • HTML 24.0%
  • Dockerfile 13.5%
  • CSS 13.0%