Giter VIP home page Giter VIP logo

mern-v2's Introduction

MERN Application
v2
--------------------------
This is a boilerplate for a MERN application running inside a docker container.

--------------------------
How it works:

There are 3 containers: client(React App), server(Node Express), db(MariaDB)

The user makes connections on http://localhost:3000 and is served the REACT CLIENT. When
a call is made to the api (eg. localhost:3000/list), the REACT CLIENT routes the request 
through REACT ROUTER via proxy to the EXPRESS SERVER (via server:5000). The EXPRESS SERVER makes the calls
to the DATABASE to retrieve the data, then hands the data back to the REACT CLIENT to render.

---------------------------
How to run the application:

You have two ways of running this application base.

You can create the two Dockerfiles into images located in the react and expapi folders. Edit the 'image' and
'environment DEBUG=' lines in both services to match the image names you chose, then run docker-compose up -d 
from the root folder to create and run the docker containers.

You can clone the repo onto an environment running the required dependencies (Node, Express, React), 
edit the package.json in the client folder and change line 27 to this:  "proxy": "http://localhost:5000 and
run the startup.sh script.

[WIP] Still working on implementing the database into the app.

mern-v2's People

Contributors

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