├── public ├── robots.txt ├── favicon.ico ├── logo192.png ├── logo512.png ├── assets │ └── img │ │ └── myschool.jpg ├── manifest.json └── index.html ├── src ├── fonts │ └── LexendDeca │ │ └── LexendDeca-Regular.ttf ├── store │ ├── apiAction.js │ ├── apiReducer.js │ └── apiStore.js ├── components │ ├── Footer.jsx │ ├── PageNotFound.jsx │ ├── Home.jsx │ ├── Header.jsx │ ├── AboutUs.jsx │ ├── ContactUs.jsx │ ├── Admission.jsx │ └── AllGrade.jsx ├── setupTests.js ├── App.test.js ├── index.css ├── reportWebVitals.js ├── api │ ├── grade.json │ └── gradeAPI.js ├── index.js ├── App.css ├── App.jsx └── logo.svg ├── .gitignore ├── db.json ├── package.json └── README.md /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishsalunkhe/react-redux-json-api/main/public/favicon.ico -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishsalunkhe/react-redux-json-api/main/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishsalunkhe/react-redux-json-api/main/public/logo512.png -------------------------------------------------------------------------------- /public/assets/img/myschool.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishsalunkhe/react-redux-json-api/main/public/assets/img/myschool.jpg -------------------------------------------------------------------------------- /src/fonts/LexendDeca/LexendDeca-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishsalunkhe/react-redux-json-api/main/src/fonts/LexendDeca/LexendDeca-Regular.ttf -------------------------------------------------------------------------------- /src/store/apiAction.js: -------------------------------------------------------------------------------- 1 | // Redux Actions 2 | export const setData = (payload) => { 3 | return { 4 | type: "SET_DATA", 5 | payload 6 | } 7 | } -------------------------------------------------------------------------------- /src/components/Footer.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | const Footer = ()=>( 4 | 7 | ) 8 | 9 | export default Footer; -------------------------------------------------------------------------------- /src/components/PageNotFound.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | const PageNotFound = () => { 4 | return ( 5 |
6 |

Error: Page does not exist!

7 |
8 | ); 9 | } 10 | 11 | export default PageNotFound; -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom'; 6 | -------------------------------------------------------------------------------- /src/App.test.js: -------------------------------------------------------------------------------- 1 | import { render, screen } from '@testing-library/react'; 2 | import App from './App'; 3 | 4 | test('renders learn react link', () => { 5 | render(); 6 | const linkElement = screen.getByText(/learn react/i); 7 | expect(linkElement).toBeInTheDocument(); 8 | }); 9 | -------------------------------------------------------------------------------- /src/store/apiReducer.js: -------------------------------------------------------------------------------- 1 | // Redux Api Reducer 2 | const initState = null 3 | export default function apiReducer(state = initState, action) { 4 | switch (action.type) { 5 | case "GET_DATA": 6 | return state 7 | case "SET_DATA": 8 | state = action.payload 9 | return state 10 | default: 11 | return state 12 | } 13 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /src/reportWebVitals.js: -------------------------------------------------------------------------------- 1 | const reportWebVitals = onPerfEntry => { 2 | if (onPerfEntry && onPerfEntry instanceof Function) { 3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { 4 | getCLS(onPerfEntry); 5 | getFID(onPerfEntry); 6 | getFCP(onPerfEntry); 7 | getLCP(onPerfEntry); 8 | getTTFB(onPerfEntry); 9 | }); 10 | } 11 | }; 12 | 13 | export default reportWebVitals; 14 | -------------------------------------------------------------------------------- /src/store/apiStore.js: -------------------------------------------------------------------------------- 1 | // Creating store 2 | 3 | import { createStore, applyMiddleware } from "redux"; 4 | import apiReducer from "./apiReducer"; 5 | import logger from 'redux-logger' // built-in middleware for logging 6 | import thunk from 'redux-thunk'; // built-in middleware allows you to 7 | // write action creators that return function instead of an object 8 | import promise from 'redux-promise-middleware'; 9 | const middleware = applyMiddleware(logger, thunk, promise) 10 | const store = createStore(apiReducer, middleware) 11 | 12 | 13 | export default store -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /db.json: -------------------------------------------------------------------------------- 1 | {"grades":[{"category":"Pre-primary","options":[{"id":1,"grade":"Nursery","fees":50000,"seats":50},{"id":2,"grade":"Jr.KG","fees":65000,"seats":50},{"id":3,"grade":"Sr.KG","fees":65000,"seats":50}]},{"category":"Primary","options":[{"id":1,"grade":"I","fees":70000,"seats":50},{"id":2,"grade":"II","fees":70000,"seats":50},{"id":3,"grade":"III","fees":70000,"seats":50},{"id":4,"grade":"IV","fees":75000,"seats":50},{"id":5,"grade":"V","fees":75000,"seats":50}]},{"category":"Secondary","options":[{"id":1,"grade":"VI","fees":80000,"seats":50},{"id":2,"grade":"VII","fees":80000,"seats":50},{"id":3,"grade":"VIII","fees":85000,"seats":50}]}]} -------------------------------------------------------------------------------- /src/api/grade.json: -------------------------------------------------------------------------------- 1 | {"grades":[{"category":"Pre-primary","options":[{"id":1,"grade":"Nursery","fees":50000,"seats":50},{"id":2,"grade":"Jr.KG","fees":65000,"seats":50},{"id":3,"grade":"Sr.KG","fees":65000,"seats":50}]},{"category":"Primary","options":[{"id":1,"grade":"I","fees":70000,"seats":50},{"id":2,"grade":"II","fees":70000,"seats":50},{"id":3,"grade":"III","fees":70000,"seats":50},{"id":4,"grade":"IV","fees":75000,"seats":50},{"id":5,"grade":"V","fees":75000,"seats":50}]},{"category":"Secondary","options":[{"id":1,"grade":"VI","fees":80000,"seats":50},{"id":2,"grade":"VII","fees":80000,"seats":50},{"id":3,"grade":"VIII","fees":85000,"seats":50}]}]} -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import './index.css'; 4 | import App from './App'; 5 | import reportWebVitals from './reportWebVitals'; 6 | import 'jquery' 7 | import 'popper.js' 8 | import 'bootstrap/dist/css/bootstrap.css' 9 | import 'bootstrap/dist/js/bootstrap.js' 10 | 11 | ReactDOM.render( 12 | 13 | 14 | , 15 | document.getElementById('root') 16 | ); 17 | 18 | // If you want to start measuring performance in your app, pass a function 19 | // to log results (for example: reportWebVitals(console.log)) 20 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals 21 | reportWebVitals(); 22 | -------------------------------------------------------------------------------- /src/components/Home.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | const Home = () => { 4 | return ( 5 |
6 | 7 |
8 |
9 |
10 |
11 |
12 |

Learning Curve Public School

13 |
14 |
15 |
16 | LCPS_School 17 | 18 |
19 | 20 |
21 | 22 |
23 | ); 24 | } 25 | 26 | export default Home; -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- 1 | .App { 2 | text-align: center; 3 | } 4 | 5 | .App-logo { 6 | height: 40vmin; 7 | pointer-events: none; 8 | } 9 | 10 | @media (prefers-reduced-motion: no-preference) { 11 | .App-logo { 12 | animation: App-logo-spin infinite 20s linear; 13 | } 14 | } 15 | 16 | .App-header { 17 | background-color: #282c34; 18 | min-height: 100vh; 19 | display: flex; 20 | flex-direction: column; 21 | align-items: center; 22 | justify-content: center; 23 | font-size: calc(10px + 2vmin); 24 | color: white; 25 | } 26 | 27 | .App-link { 28 | color: #61dafb; 29 | } 30 | 31 | @keyframes App-logo-spin { 32 | from { 33 | transform: rotate(0deg); 34 | } 35 | to { 36 | transform: rotate(360deg); 37 | } 38 | } 39 | 40 | @font-face { 41 | font-family: 'Lexend Deca', sans-serif; 42 | font-weight: 900; 43 | src: local('Lexend Deca'), url(./fonts/LexendDeca/LexendDeca-Regular.ttf) format('truetype'); 44 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "lcps-case-study", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^5.11.9", 7 | "@testing-library/react": "^11.2.5", 8 | "@testing-library/user-event": "^12.8.3", 9 | "axios": "^0.21.1", 10 | "bootstrap": "^4.6.0", 11 | "jquery": "^3.6.0", 12 | "popper.js": "^1.16.1", 13 | "react": "^17.0.1", 14 | "react-dom": "^17.0.1", 15 | "react-redux": "^7.2.2", 16 | "react-router-dom": "^5.2.0", 17 | "react-scripts": "4.0.3", 18 | "redux": "^4.0.5", 19 | "web-vitals": "^1.1.0" 20 | }, 21 | "scripts": { 22 | "start": "react-scripts start", 23 | "build": "react-scripts build", 24 | "test": "react-scripts test", 25 | "eject": "react-scripts eject" 26 | }, 27 | "eslintConfig": { 28 | "extends": [ 29 | "react-app", 30 | "react-app/jest" 31 | ] 32 | }, 33 | "browserslist": { 34 | "production": [ 35 | ">0.2%", 36 | "not dead", 37 | "not op_mini all" 38 | ], 39 | "development": [ 40 | "last 1 chrome version", 41 | "last 1 firefox version", 42 | "last 1 safari version" 43 | ] 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/components/Header.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import { NavLink } from 'react-router-dom'; 4 | 5 | const Header = () => { 6 | return ( 7 | 28 | ); 29 | } 30 | 31 | export default Header; -------------------------------------------------------------------------------- /src/App.jsx: -------------------------------------------------------------------------------- 1 | import { BrowserRouter, Route, Switch } from "react-router-dom"; 2 | import Contact from "./components/ContactUs"; 3 | import AboutUs from "./components/AboutUs"; 4 | import Admission from "./components/Admission"; 5 | import AllGrade from "./components/AllGrade"; 6 | import Footer from "./components/Footer"; 7 | import Header from "./components/Header"; 8 | import Home from "./components/Home"; 9 | import PageNotFound from "./components/PageNotFound"; 10 | import apiReducer from "./store/apiReducer"; 11 | import { Provider } from "react-redux"; 12 | import { createStore } from "redux"; 13 | const store = createStore(apiReducer) 14 | 15 | function App() { 16 | return ( 17 |
18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |



33 |
34 |
35 | ); 36 | } 37 | 38 | export default App; 39 | -------------------------------------------------------------------------------- /src/components/AboutUs.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | const About = () => { 4 | return ( 5 |
6 |

7 |

About US

8 |

9 |
10 |
11 | LCPS_School 12 | 13 | 14 |
15 |

History

16 |

17 | We launched Learning Curve Public School in 2001 & since then have rapidly changed the face of Pre- 18 | Primary,Primary and Secondary education in the City. Our success as one of the leading education service 19 | providers raised the expectations of many hopeful parents, who were keen to see their children continue to 20 | blossom under our guidance. 21 |

22 |

Vision

23 |

24 | Learning Curve Public School seeks to provide the best place for a child to learn, to grow and to evolve into a 25 | balanced and strong individual. The School intends to strive to become a second home for your child. The 26 | School located Hinjawadi Pune.

27 |
28 | 29 |
30 | ); 31 | } 32 | 33 | export default About; -------------------------------------------------------------------------------- /src/components/ContactUs.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | const ContactUs = () => { 4 | return ( 5 | 6 |
7 |

Contact US

8 |
9 |
10 |
11 |
12 | LCPS_School 13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |

Phone

21 |

Pre-Primary

22 |

+91 9503115106

23 |

Primary and Secondary

24 |

+91 9503115107

25 |
26 |
27 |

Email

28 |

Pre-Primary

29 |

lcps.preprimary@learningcurve.in

30 |

Primary and Secondary

31 |

lcps.primarysec@learningcurve.in

32 |
33 |
34 |

Location

35 |

Phase-1, Hinjawadi, Pimpri-Chinchwad
36 | Near Hotel Lemon Tree, Pune,
37 | Maharashtra 411057

38 |
39 |
40 |
41 |
42 | ); 43 | } 44 | 45 | export default ContactUs; -------------------------------------------------------------------------------- /src/components/Admission.jsx: -------------------------------------------------------------------------------- 1 | // import { Component } from 'react'; 2 | import axios from 'axios' 3 | import React, { useEffect } from 'react'; 4 | import { useSelector, useDispatch } from 'react-redux' 5 | import { Link } from 'react-router-dom' 6 | import { setData } from '../store/apiAction' 7 | 8 | 9 | function Admission() { 10 | 11 | // storing the api data using dispatch and axios 12 | const dispatch = useDispatch() 13 | const storeData = async () => { 14 | const data = await axios.get('https://my-json-server.typicode.com/ashishsalunkhe/react-redux-json-api/grades') 15 | dispatch(setData(data)) 16 | } 17 | useEffect(() => { 18 | storeData() 19 | // eslint-disable-next-line 20 | }, []) 21 | 22 | // getting data from store using useSelector hook 23 | const dataFromStore = useSelector(state => state) 24 | 25 | 26 | return ( 27 |
28 |
29 |
30 |

Learning Curve Public School

31 |
32 | LCPS_School 33 |
34 |
35 |
36 |

Grades Available

37 |
38 |
    39 | { 40 | dataFromStore && dataFromStore.data.map((value, key) => ( 41 |
  • 42 | {value.category} 43 |
  • 44 | )) 45 | } 46 |
47 |
48 |
49 | ) 50 | } 51 | 52 | 53 | 54 | 55 | 56 | 57 | export default Admission; -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 15 | 16 | 25 | 26 | 32 | React App 33 | 34 | 35 | 36 | 37 |
38 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /src/components/AllGrade.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { useSelector } from 'react-redux' 3 | import { Link } from 'react-router-dom' 4 | 5 | function AllGrade(props) { 6 | 7 | // getting data from store 8 | const dataFromStore = useSelector(state => state) 9 | 10 | // filtering out the category from the params 11 | const data = dataFromStore && dataFromStore.data.filter(function (value) { 12 | return value.category === props.match.params.string; 13 | }); 14 | 15 | 16 | return ( 17 |
18 |
19 |

Learning Curve Public School

20 |
21 | LCPS_School 22 |
23 |
24 |
25 |
26 |

{data[0].category}

27 |
28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | { 37 | data[0].options.map((value, key) => ( 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | )) 47 | } 48 | 49 |
GradeFeesSeats
{value.grade}₹ {value.fees}{value.seats}
50 |
51 | Back to Admission 52 |
53 |
54 | Back to Home 55 |
56 |
57 | ) 58 | } 59 | 60 | export default AllGrade 61 | -------------------------------------------------------------------------------- /src/logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/api/gradeAPI.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs'); 2 | 3 | const GradeAPI = { 4 | grades: [{ 5 | "category": "Pre-primary", 6 | "options": [{ 7 | "id": 1, 8 | "grade": "Nursery", 9 | "fees": 50000, 10 | "seats": 50 11 | }, 12 | { 13 | "id": 2, 14 | "grade": "Jr.KG", 15 | "fees": 65000, 16 | "seats": 50 17 | }, 18 | { 19 | "id": 3, 20 | "grade": "Sr.KG", 21 | "fees": 65000, 22 | "seats": 50 23 | } 24 | ] 25 | }, 26 | { 27 | "category": "Primary", 28 | "options": [{ 29 | "id": 1, 30 | "grade": "I", 31 | "fees": 70000, 32 | "seats": 50 33 | }, 34 | { 35 | "id": 2, 36 | "grade": "II", 37 | "fees": 70000, 38 | "seats": 50 39 | }, 40 | { 41 | "id": 3, 42 | "grade": "III", 43 | "fees": 70000, 44 | "seats": 50 45 | }, 46 | { 47 | "id": 4, 48 | "grade": "IV", 49 | "fees": 75000, 50 | "seats": 50 51 | }, 52 | { 53 | "id": 5, 54 | "grade": "V", 55 | "fees": 75000, 56 | "seats": 50 57 | }, 58 | ] 59 | }, 60 | { 61 | "category": "Secondary", 62 | "options": [{ 63 | "id": 1, 64 | "grade": "VI", 65 | "fees": 80000, 66 | "seats": 50 67 | }, 68 | { 69 | "id": 2, 70 | "grade": "VII", 71 | "fees": 80000, 72 | "seats": 50 73 | }, 74 | { 75 | "id": 3, 76 | "grade": "VIII", 77 | "fees": 85000, 78 | "seats": 50 79 | } 80 | ] 81 | } 82 | ] 83 | } 84 | 85 | const gradeJSON = JSON.stringify(GradeAPI); 86 | fs.appendFile('grade.json', gradeJSON, function(err) { 87 | if (err) throw err; 88 | console.log('file saved'); 89 | }) 90 | // module.export = GradeAPI; -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Getting Started with Create React App 2 | 3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 4 | 5 | ## Available Scripts 6 | 7 | In the project directory, you can run: 8 | 9 | ### `npm start` 10 | 11 | Runs the app in the development mode.\ 12 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 13 | 14 | The page will reload if you make edits.\ 15 | You will also see any lint errors in the console. 16 | 17 | ### `npm test` 18 | 19 | Launches the test runner in the interactive watch mode.\ 20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 21 | 22 | ### `npm run build` 23 | 24 | Builds the app for production to the `build` folder.\ 25 | It correctly bundles React in production mode and optimizes the build for the best performance. 26 | 27 | The build is minified and the filenames include the hashes.\ 28 | Your app is ready to be deployed! 29 | 30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 31 | 32 | ### `npm run eject` 33 | 34 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 35 | 36 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 37 | 38 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 39 | 40 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 41 | 42 | ## Learn More 43 | 44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 45 | 46 | To learn React, check out the [React documentation](https://reactjs.org/). 47 | 48 | ### Code Splitting 49 | 50 | This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) 51 | 52 | ### Analyzing the Bundle Size 53 | 54 | This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) 55 | 56 | ### Making a Progressive Web App 57 | 58 | This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) 59 | 60 | ### Advanced Configuration 61 | 62 | This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) 63 | 64 | ### Deployment 65 | 66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) 67 | 68 | ### `npm run build` fails to minify 69 | 70 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) 71 | #� �r�e�a�c�t�-�r�e�d�u�x�-�j�s�o�n�-�a�p�i� 72 | � 73 | � 74 | 75 | ### API For Data Fetch 76 | 77 | https://my-json-server.typicode.com/ashishsalunkhe/react-redux-json-api/grades 78 | 79 | 80 | Steps to create your own fake api: 81 | 82 | 1. Get your data in JSON format 83 | 2. Push the JSON data in any repository 84 | 3. Go to my-json-server and create a new server for your api 85 | 4. pass your GitHub username and repository name to create a new fake api 86 | 5. Using axios or react-router in your react app access the api url. 87 | --------------------------------------------------------------------------------