Giter Site home page Giter Site logo

react_express_dockerdemo's Introduction

React_Express_App_Medium_Tutorial

  • This repository has the code to support a tutorial that I created on Medium called Create a React FrontEnd, a Node/Express BackEnd and connect them together.
  • This repository can also be used as a starting point (boilerplate), if you whant to create your own React/Express app. .

Where can I check the tutorial?

You are very welcome to check the tutorial on Medium. Just follow the link below.

About the app

Actually, there are two separated apps. The Client which serves the FrontEnd (using React), and the API (in Node/Express).

How to run the API

  1. In your terminal, navigate to the api directory.
  2. Run npm install to install all dependencies.
  3. Run npm start to start the app.

How to run the Client

  1. In another terminal, navigate to the client directory.
  2. Run npm install to install all dependencies.
  3. Run npm start to start the app

Check if they are connected

  1. With the two apps running, open your browser in http://localhost:3000/.
  2. If you see a webpage saying Welcome to React, it means the FrontEnd is working.
  3. If the same webpage has the phrase API is working properly, it means the API is working.
  4. Enjoy!

Deploying using docker compose

The dockercompose_prod.yml is configured to update the latest file. Just run docker-compose -f dockercompose_prod.yml pull to get the latest build

react_express_dockerdemo's People

Contributors

debankurs avatar joao-henrique 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.