CourseCove

CourseCove is an open-source Node.js Express API project designed to provide a robust and scalable backend solution for managing courses, users, authentication, and reviews. It utilizes MongoDB as the database system for storing and retrieving data.

Note: Replace {{URL}} with https://coursecove.onrender.com to use the API

Bootcamp 6

Bootcamps CRED fuctionality

Description

get all bootcamps from database. Includes pagination, collections etc

Headers
Key Value Description
Content-Type application/json

json type

Authorization Bearer Your Token will come here
Body
{ "name": "ByteCamp Dummy 3", "description": "Is coding your passion? ByteCamp will give you the skills and the tools to become the best developer possible. We specialize in full stack web development and data science.", "website": "https://bytecamp.com", "phone": "(777) 777-7777", "email": "enroll@bytecamp.com", "address": "789 Broadway St New York NY 10003", "careers": [ "Web Development", "Data Science", "Business" ], "photo": "no-photo.jpg", "housing": false, "jobAssistance": false, "jobGuarantee": false, "acceptGi": false, "createdAt": "2023-04-10T14:07:02.338Z", "__v": 0 }
Description

Update a single bootcamp by bootcamp id

Headers
Key Value Description
Content-Type application/json

json type

Body
{ "housing":"true", "careers":["UI/UX"] }
Description

upload a image file for a bootcamp with id

Headers
Key Value Description
Content-Type application/json

json type

Body
Key Value Description
file

Courses 6

Create, read, update and delete courses

Description

get all courses from database

Description

Add a course with bootcamp id

Headers
Key Value Description
Content-Type application/json

json type

Body
{ "title": "Front End Web Development 7", "description": "This course will provde you with all of the essentials to become a successful frontend web developer. You will learn to master HTML, CSS and front end JavaScript, along with tools like Git, VSCode and front end frameworks like Vue", "weeks": "8", "tuition": 200, "minimumSkill": "beginner", "scholarshipAvailable": false, "bootcamp": "5d725a1b7b292f5f8ceff78b" }
Description

Update a course by id

Headers
Key Value Description
Content-Type application/json

json type

Body
{ "tuition": 1400 }

Authentication 7

routes for authentication including register, login , reset password etc.

Description

Login user via email and password

Body
{ "password":"123456", "email":"inder@gmail.com" }
Description

get logged in user if token validation true

Headers
Key Value Description
Authorization Bearer Your Token will come here
Description

Forgot password route to create a reset token.

Body
{ "password":"123456", "email":"user@gmail.com" }
Description

reset password using token

Body
{ "email":"user@gmail.com" }
Description

update user name and email using put request

Headers
Key Value Description
Authorization Bearer Your Token will come here
Body
{ "name":"inder", "email":"inder@gmail.com" }
Description

update user password using current password and new password

Headers
Key Value Description
Authorization Bearer Your Token will come here
Body
{ "currentPassword":"123456", "newPassword":"123456" }

Users 5

admin CRUD fuctions of geting users, adding users, updating users, deleting users

Reviews 7

manange course reviews

Description

Get all reviews or get reviews for a specific bootcamp

Description

Get a single review by id

Description

log out user or clear cookie

Body
{ "password":"123456", "email":"inder3@gmail.com" }