This API provides a robust solution for managing courses, enabling users to create, read, update, and delete course information.
Click Me
- Clone the repository
- Use docker-compose to run the server
git clone https://github.com/arshadpatel/codeX100.git
cd codeX100
docker-compose up -d
Click Me
- Clone the repository
- Install the dependencies
- Run the server
git clone https://github.com/arshadpatel/codeX100.git
cd codeX100
cd backend
pnpm install
pnpm dev
To use the API, you can make HTTP requests to the endpoints provided.
- POST /courses: Add a new course (requires name, price, and description).
- GET /courses: Retrieve a list of available courses.
- GET /courses/:id: Retrieve details of a specific course.
- PUT /courses/:id: Update an existing course's details.
- DELETE /courses/:id: Remove a course from the system.
All endpoints ensure proper validation using zod for course data, including name, price, and description, to maintain data integrity.
If you would like to contribute, please read our Contributing Guide.