Coder Social home page Coder Social logo

jackfiallos / docker-node-react-mysql-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alifa20/docker-node-react-mysql-boilerplate

0.0 3.0 0.0 212 KB

A boilerplate Docker project for development with a MySQL database, a Node.js backend using Express and Sequelize, and a React front-end.

License: MIT License

Dockerfile 5.25% JavaScript 71.89% Shell 10.39% HTML 11.99% CSS 0.48%

docker-node-react-mysql-boilerplate's Introduction

Docker MySQL Node Sequelize React boilerplate project

This is a boilerplate Docker project that:

  1. Starts a MySQL server container based on the official image,
  2. Starts a Node.js 10.8.0 app that waits for the database to become responsive, and run all migrations and seeds if necessary,
  3. Starts a React app (also based on Node.js 10.8.0).

You only need to have Docker installed in your computer, nothing else. The docker-compose.yml file creates a bind mount directoty that allows you to test anything live, just change the code for the server or client and it will immediately become available.

The data for the MySQL will persist between launches.

To bring the project up first install Docker, then run:

docker-compose up

The docker-compose.yml file routes port 80 on your host to the React app running on 3000 on the Docker environment, so once the system is up just go to http://localhost.

To bring it down:

docker-compose down

If you change your Dockerfile and must rebuild the Node.js or React images, run:

docker-compose up --build

docker-node-react-mysql-boilerplate's People

Contributors

rgaino avatar

Watchers

 avatar  avatar  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.