Skip to content

killjoycircuit/Course-Selling-app-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ“ Course Selling Platform - Backend

This is the backend server for a course-selling platform built using Node.js, Express, and MongoDB. It provides functionality for user and admin registration/login, course creation and purchase, and role-based access control to ensure secure access to resources.


πŸš€ Features

  • βœ… JWT Authentication for both Users and Admins
  • πŸ” Protected Routes using middleware and Role Validation
  • πŸŽ“ Admins can create, edit, and delete courses
  • πŸ›’ Users can view and purchase courses
  • πŸ“¦ MongoDB + Mongoose for robust and scalable data handling

πŸ› οΈ Tech Stack

  • Backend: Node.js, Express.js
  • Database: MongoDB, Mongoose
  • Authentication: JWT
  • Environment Management: dotenv
  • Password Hashing: bcrypt
  • Validation & Middleware: Custom Middleware

πŸ“ Project Structure

course-selling-backend/
β”œβ”€β”€ middleware/
β”‚   β”œβ”€β”€ auth.js
β”‚   └── role.js
β”œβ”€β”€ routes/
β”‚   β”œβ”€β”€ admin.js
β”‚   β”œβ”€β”€ user.js
β”‚   └── course.js
β”œβ”€β”€ .gitignore
β”œβ”€β”€ README.md
β”œβ”€β”€ db.js
β”œβ”€β”€ index.js
β”œβ”€β”€ package.json
β”œβ”€β”€ package-lock.json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published