Git Product home page Git Product logo

Express + React Starter Template Project

An Express + React starter boilerplate, based on Express Generator and Facebook Incubators' Create-React-App.

Express server runs on port: 3001 and React Frontend on port: 3000.

The React Frontend, created using create-react-app, is found inside the client directory.

Added libraries

Node/Express Backend

React Frontend

  • React-Redux: Predictable state container for JavaScript apps
  • Redux-Thunk: Thunk middleware for Redux
  • React-Router: Declarative routing for React
  • Redux-Form: A Higher Order Component using react-redux to keep form state in a Redux store

Development Instructions

  1. On the root level, install Node dependencies with npm install.
  2. Start the Node/Express.js backend server with npm start.
  3. On another Terminal tab, enter the client subdirectory and install the dependencies with npm install.
  4. Start the Webpack dev-server with npm start.
  5. In the client's package.json file, the "proxy": "http://localhost:3001" config proxies requests form the frontend to the Express backend.

Deploy to production

  1. On the client subdirectory, create a production build with npm run build.
  2. Express was configured to point to the build directory on the app.js file.
  3. Deploy your Node app and Express will automatically point to your React build.

Author

Juan Pablo Djeredjian's Projects

banknote icon banknote

A simple JavaScript libary for formatting currency amounts according to Unicode CLDR standards

deutsch icon deutsch

Wortschatz, AnkiCards and a Python script

dna2bpm icon dna2bpm

DNA²BPM is an Open Source BPM Suite based on BPMN2.0 standard, it has all the main components needed to design and run BPMN2.0 diagrams plus some other tools.

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.