React app to generate Product List using Axios from JSON server with routing using React Router.
The data is stored in src/db.json
.
Before you begin, ensure you have met the following requirements:
- You have installed the latest version of
node, npm
To get axios-router-list, follow these steps:
git clone https://github.com/2kabhishek/axios-router-list
cd axios-router-list
npm install # Intall dependencies
./nod_modules/.bin/json-server -w ./src/db.json -p 4000 # Run project installation of json-server on port 4000
npm start # Runs live on localhost:3000
npm test # Runs tests
Copy required Components into your project structure and include them in your jsx.
import AllProductsPage from Components/AllProductsPage/AllProductsPage
// Other jsx code
<AllProductsPage />
// Code continues
Hit the β button if you found this useful.
Builds on json-list by adding Axios and React Router support.