jamessieu / ice-cream-voter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react_app_tutorial

This is a boilerplate for Codesmith designed to combine a front end create-react-app with a back end express server.

Run npm install in the root project dir and run another npm install at the ./client folder. Notice that root folder and /client both have package.json files.

Run with npm run dev on the root folder. This simultaneously runs the express server with nodemon, and the create-react-app client.

Routing on the client is handled with react-router-dom. API calls to the back end can be done without having to prefix the server hostname by proxying (in the client package.json) the API calls to the express server.

The react app on the client is equipped with a redux store. One may handle async actions using redux-thunk middleware.

About


Languages

Language:HTML 56.9%Language:JavaScript 41.9%Language:CSS 1.2%