This Project is a Simple ReactJS Project which demonstrates the following
- Creating a Component in React
- Making HTTP calls to BE running on different port.
- Communicating between parent and child component
- Using Bootstrap along with React
- Using Basic Routing in React
Complete the above step first ,
Refer to Node.js to install nodejs
Install create-react-app npm package globally. This will help to easily run the project and also build the source files easily. Use the following command to install create-react-app
npm install -g create-react-app
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
-
Home Component: It is the landing page of the application.
-
Header Component: It is a header component which is visible throughout the application.
-
Menu Component: It is like a side navbar which route user to different page.
-
AllCourse Component: It is used to display the list of all component.
-
Course Component : This Component displays a single course detail.
-
AddCourse Component : This Component is used to add the new course.
-
UpdateCourse Component: This Component is used to update the already existing course.
- User can add the course.
- User can view the list of all courses.
- User can update the course detail.
- User can delete the course from view page.
axios library is used to make HTTP Calls to BE running on 8080
base url
http://localhost:3000
View | Url |
---|---|
Home Page | / |
View All Course | /view-course |
Add Course | /add-course |
Update Course | /update-course/{courseId} |
create-react-app : The following link has all the commands that can be used with create-react-app Create React App
ReactJS : Refer to doc to understand the concepts of ReactJS
React Bootstrap : Refer to ReactStrap Doc to understand how to use React Bootstrap