/axios-router-list

React app to generate Product List using Axios from JSON server with routing. πŸ—ΊπŸŒ

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

License People Stars Forks Watches Last Updated

React app to generate Product List using Axios from JSON server with routing using React Router. The data is stored in src/db.json.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed the latest version of node, npm

Getting axios-router-list

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

Using axios-router-list

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.

More Info

Builds on json-list by adding Axios and React Router support.