Run the following commands:
npm install
npm start
This will install dependencies, then start the app and mock API.
This project was bootstrapped with Create React App.
I made the following enhancements:
- Added a mock API using json-server. Configured
npm start
to run the app and mock API at the same time using npm-run-all. See Building Applications with React and Flux for details on how to set this up from scratch. - Installed react-router-dom, history (React Router peer dependency), and cross-env for declaring environment variables.
- Added some React components to help us get started: Header, Footer, Spinner
- Added styles to App.css
- Added
/public/images
. - Added data fetching functions in
/src/services
. - Added db.json to root as json-server's mock database
- Overwrote App.css with custom styles
- Simplified index.js (removed service worker)
- Deleted from src: index.css, logo.svg, serviceWorker.js, App.test.js
- Deleted from public: logo files, manifest.json, robots.txt
- Customized App.js and renamed to App.jsx