{"id":18207597,"url":"https://github.com/harsh825/course-selling-webapp-backend","last_synced_at":"2026-05-08T14:02:06.078Z","repository":{"id":260153281,"uuid":"880475120","full_name":"HARSH825/Course-Selling-WebApp-Backend","owner":"HARSH825","description":"A robust backend API built with Node.js and Express.js for a course selling platform. This system includes user authentication, course management, and administrative functionalities, enabling a seamless online learning experience. Key features include JWT-based authentication, password encryption, and MongoDB integration for efficient data handling","archived":false,"fork":false,"pushed_at":"2025-02-05T10:11:48.000Z","size":67,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T19:52:44.251Z","etag":null,"topics":["backend","backend-api","bcrypt","middlewares","mongodb","mongoose","restful-api","routes","zod-validation"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HARSH825.png","metadata":{"files":{"readme":null,"changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-29T19:43:27.000Z","updated_at":"2025-02-05T10:11:51.000Z","dependencies_parsed_at":"2025-02-13T21:39:44.725Z","dependency_job_id":null,"html_url":"https://github.com/HARSH825/Course-Selling-WebApp-Backend","commit_stats":null,"previous_names":["harsh825/course-selling-webapp-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HARSH825/Course-Selling-WebApp-Backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HARSH825%2FCourse-Selling-WebApp-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HARSH825%2FCourse-Selling-WebApp-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HARSH825%2FCourse-Selling-WebApp-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HARSH825%2FCourse-Selling-WebApp-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HARSH825","download_url":"https://codeload.github.com/HARSH825/Course-Selling-WebApp-Backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HARSH825%2FCourse-Selling-WebApp-Backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003389,"owners_count":26083579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backend","backend-api","bcrypt","middlewares","mongodb","mongoose","restful-api","routes","zod-validation"],"created_at":"2024-11-03T13:03:38.340Z","updated_at":"2025-10-10T09:07:32.779Z","avatar_url":"https://github.com/HARSH825.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Course Selling WebApp Backend\n\nA robust backend API system for a course selling platform built with Node.js and Express.js. This system provides comprehensive functionality for course management, user authentication, and admin operations.\n\n## 🚀 Features\n\n- **User Authentication**\n  - Secure signup and login for both users and admins\n  - JWT-based authentication system\n  - Password encryption for enhanced security\n\n- **Course Management**\n  - Create, read, update, and delete courses (Admin)\n  - List all available courses\n  - Detailed course information access\n  - Course purchase functionality for users\n\n- **User Management**\n  - User profile management\n  - Course purchase history\n  - Admin dashboard for user management\n\n## 🛠️ Tech Stack\n\n- Node.js\n- Express.js\n- MongoDB (with Mongoose)\n- JSON Web Tokens (JWT)\n- bcrypt for password hashing\n\n## 📋 Prerequisites\n\n- Node.js (v14 or higher)\n- MongoDB\n- npm/yarn package manager\n\n## ⚙️ Installation \u0026 Setup\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/HARSH825/Course-Selling-WebApp-Backend.git\n   ```\n\n2. Install dependencies:\n   ```bash\n   cd Course-Selling-WebApp-Backend\n   npm install\n   ```\n\n3. Create a `.env` file in the root directory:\n   ```env\n   PORT=3000\n   MONGODB_URI=your_mongodb_connection_string\n   JWT_SECRET=your_jwt_secret\n   ```\n\n4. Start the server:\n   ```bash\n   npm start\n   ```\n\n## 🔗 API Endpoints\n\n### Authentication Routes\n\n```\nPOST /admin/signup - Admin registration\nPOST /admin/login  - Admin login\nPOST /users/signup - User registration\nPOST /users/login  - User login\n```\n\n### Course Routes\n\n```\nGET    /courses        - Get all courses\nGET    /courses/:id    - Get specific course\nPOST   /admin/courses  - Create a new course (Admin only)\nPUT    /admin/courses/:id - Update course (Admin only)\n```\n\n### User Routes\n\n```\nGET    /users/courses     - Get purchased courses\nPOST   /users/courses/:id - Purchase a course\n```\n\n## 🔒 Environment Variables\n\nCreate a `.env` file with the following variables:\n\n- `PORT`: Server port number\n- `MONGODB_URI`: MongoDB connection string\n- `JWT_SECRET`: Secret key for JWT token generation\n\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\n## 👨‍💻 Author\n\n- **Harsh** - [GitHub Profile](https://github.com/HARSH825)\n\n## ✨ Acknowledgments\n\n- Inspired by modern e-learning platforms\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharsh825%2Fcourse-selling-webapp-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharsh825%2Fcourse-selling-webapp-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharsh825%2Fcourse-selling-webapp-backend/lists"}