WIP
A React/Redux project that pulls in survey data from an API and renders it across the app. The survey data is a central theme to the app - it will be reused throughout the project, so building Redux into the app early on allows future components to seamlessly manipulate and display that state (add, edit, remove etc).
I experimented with using a mock API that also serves the client app:
In Development by using webpack-dev-server to proxy the API requests
In Production by simply using the API server to also serve static client files
- Clone/DL the repository
From the root directory
- Install the dependencies for the server AND client
npm run setup
Dev ENV
- Boot up a concurrent server & client
npm start
Production
- Bundle the client into a build folder:
npm run build
- Start the server:
npm run server
- View the site at localhost:3000
For Bonus Points Install the Redux DevTools Extension
Then open up the DevTools on the localhost and navigate to the Redux tab to view all of the Redux state changes based on your actions.