2KAbhishek / axios-router-list

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

Home Page:https://2kabhishek.github.io/axios-router-list

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

https://2kabhishek.github.io/axios-router-list

License:GNU General Public License v3.0


Languages

Language:JavaScript 80.7%Language:CSS 10.2%Language:HTML 9.2%