This Project is a Simple ReactJS Project which demonstrates the following
- Creating a Component in React
- Making API calls
- Communicating between parent and child component
- Updating the data based on specific events
This URL has the application deployed in
Refer to https://nodejs.org/en/ to install nodejs
Clone the project into local
Install all the npm packages. Go into the project folder and type the following command to install all npm packages
npm install
In order to run the application Type the following command
npm start
The Application Runs on localhost:3000
The static assets for the production build (minified files) has already been generated using "npm run build". To run the application in Production Environment, run the following command
serve -s build
The Application Runs on localhost:5000
To change the port for the Production Build, run the following command
serve -s build -l 8080
Change port 8080 with your available ports
-
Courses Component : This Component Displays the course details of the selected category and search keyword. This Component gets its data from an API.
-
Sidebar Component : This Component displays a list of course categories and a search bar. This Component gets the data from an API as well. This Component is the Child Component of Courses Component
axios library is used to make API Calls