This is a course management application that allows you to view, filter, sort, and paginate courses and speakers.
- Clone the repository to your local machine.
- Navigate to the
backend
directory using the terminal. - Install the required dependencies by running the following command:
npm install
- Create a
.env
file in thebackend
directory and add the following configuration:PORT=5000
- Start the backend server by running the following command:
npm start
The backend server will be running on http://localhost:5000
.
- Navigate to the
frontend
directory using the terminal. - Install the required dependencies by running the following command:
npm install
- Start the frontend development server by running the following command:
npm start
The frontend development server will be running on http://localhost:3000
.
- GET
/courses
: Get all courses. - GET
/courses/:id
: Get a single course by ID. - POST
/courses
: Create a new course. (Example JSON data below)
- GET
/speakers
: Get all speakers. - GET
/speakers/:id
: Get a single speaker by ID. - POST
/speakers
: Create a new speaker. (Example JSON data below)
- GET
/topics
: Get all topics. - GET
/topics/:id
: Get a single topic by ID. - POST
/topics
: Create a new topic. (Example JSON data below)
The frontend has the following routes:
/courses
: View and manage courses./speakers
: View and manage speakers.
{
"name": "Introduction to React",
"topicID": "topic123",
"price": 49.99
}
{
"name": "Vipul Kumar"
}
{
"name": "Web Development"
}
Please replace the example JSON data with your desired values when testing the POST routes.
Feel free to explore and use the Course Management Application! If you have any questions or need assistance, please refer to the documentation or reach out to the development team. Happy coding!