{"id":30770558,"url":"https://github.com/adrianhajdin/subscription-tracker-api","last_synced_at":"2025-09-04T23:09:49.779Z","repository":{"id":276477284,"uuid":"929169307","full_name":"adrianhajdin/subscription-tracker-api","owner":"adrianhajdin","description":"Skip the basic CRUD—this Backend Crash Course is all about building a production-ready Subscription Management System with real users, real money, and real business logic. You'll learn JWT authentication, database modeling, API architecture, security, automated workflows, and much more!","archived":false,"fork":false,"pushed_at":"2025-02-08T13:27:07.000Z","size":46,"stargazers_count":356,"open_issues_count":3,"forks_count":86,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-28T11:10:31.137Z","etag":null,"topics":["api","backend","javascript","nodejs"],"latest_commit_sha":null,"homepage":"https://jsmastery.pro","language":"JavaScript","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/adrianhajdin.png","metadata":{"files":{"readme":"README.md","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":"2025-02-07T23:51:25.000Z","updated_at":"2025-08-27T14:46:13.000Z","dependencies_parsed_at":"2025-02-08T14:35:14.555Z","dependency_job_id":null,"html_url":"https://github.com/adrianhajdin/subscription-tracker-api","commit_stats":null,"previous_names":["adrianhajdin/subscription-tracker-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adrianhajdin/subscription-tracker-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianhajdin%2Fsubscription-tracker-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianhajdin%2Fsubscription-tracker-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianhajdin%2Fsubscription-tracker-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianhajdin%2Fsubscription-tracker-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrianhajdin","download_url":"https://codeload.github.com/adrianhajdin/subscription-tracker-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianhajdin%2Fsubscription-tracker-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273685604,"owners_count":25149722,"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-09-04T02:00:08.968Z","response_time":61,"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":["api","backend","javascript","nodejs"],"created_at":"2025-09-04T23:09:44.346Z","updated_at":"2025-09-04T23:09:49.761Z","avatar_url":"https://github.com/adrianhajdin.png","language":"JavaScript","readme":"\u003cdiv align=\"center\"\u003e\n  \u003cbr /\u003e\n    \u003ca href=\"https://youtu.be/rOpEN1JDaD0?si=WfOjLV57WfR9x6QK\" target=\"_blank\"\u003e\n      \u003cimg src=\"https://i.ibb.co/xtTbHkfs/Readme-Thumbnail.png\" alt=\"Project Banner\"\u003e\n    \u003c/a\u003e\n  \u003cbr /\u003e\n  \n  \u003cdiv\u003e\n    \u003cimg src=\"https://img.shields.io/badge/node.js-339933?style=for-the-badge\u0026logo=Node.js\u0026logoColor=white\" alt=\"node.js\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/express.js-000000?style=for-the-badge\u0026logo=express\u0026logoColor=white\" alt=\"express.js\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/-MongoDB-13aa52?style=for-the-badge\u0026logo=mongodb\u0026logoColor=white\" alt=\"mongodb\" /\u003e\n  \u003c/div\u003e\n\n  \u003ch3 align=\"center\"\u003eA Subscription Management System API\u003c/h3\u003e\n\n   \u003cdiv align=\"center\"\u003e\n     Build this project step by step with our detailed tutorial on \u003ca href=\"https://www.youtube.com/@javascriptmastery/videos\" target=\"_blank\"\u003e\u003cb\u003eJavaScript Mastery\u003c/b\u003e\u003c/a\u003e YouTube. Join the JSM family!\n    \u003c/div\u003e\n\u003c/div\u003e\n\n## 📋 \u003ca name=\"table\"\u003eTable of Contents\u003c/a\u003e\n\n1. 🤖 [Introduction](#introduction)\n2. ⚙️ [Tech Stack](#tech-stack)\n3. 🔋 [Features](#features)\n4. 🤸 [Quick Start](#quick-start)\n5. 🕸️ [Snippets (Code to Copy)](#snippets)\n6. 🔗 [Assets](#links)\n7. 🚀 [More](#more)\n\n## 🚨 Tutorial\n\nThis repository contains the code corresponding to an in-depth tutorial available on our YouTube channel, \u003ca href=\"https://www.youtube.com/@javascriptmastery/videos\" target=\"_blank\"\u003e\u003cb\u003eJavaScript Mastery\u003c/b\u003e\u003c/a\u003e.\n\nIf you prefer visual learning, this is the perfect resource for you. Follow our tutorial to learn how to build projects like these step-by-step in a beginner-friendly manner!\n\n\u003ca href=\"https://youtu.be/rOpEN1JDaD0?si=WfOjLV57WfR9x6QK\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/sujatagunale/EasyRead/assets/151519281/1736fca5-a031-4854-8c09-bc110e3bc16d\" /\u003e\u003c/a\u003e\n\n## \u003ca name=\"introduction\"\u003e🤖 Introduction\u003c/a\u003e\n\nBuild a **production-ready Subscription Management System API** that handles **real users, real money, and real business logic**.  \n\nAuthenticate users using JWTs, connect a database, create models and schemas, and integrate it with ORMs. Structure the architecture of your API to ensure scalability and seamless communication with the frontend.  \n\nIf you're getting started and need assistance or face any bugs, join our active Discord community with over **50k+** members. It's a place where people help each other out.\n\n\u003ca href=\"https://discord.com/invite/n6EdbFJ\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/sujatagunale/EasyRead/assets/151519281/618f4872-1e10-42da-8213-1d69e486d02e\" /\u003e\u003c/a\u003e\n\n## \u003ca name=\"tech-stack\"\u003e⚙️ Tech Stack\u003c/a\u003e\n\n- Node.js\n- Express.js\n- MongoDB\n\n## \u003ca name=\"features\"\u003e🔋 Features\u003c/a\u003e\n\n👉 **Advanced Rate Limiting and Bot Protection**: with Arcjet that helps you secure the whole app.\n\n👉 **Database Modeling**: Models and relationships using MongoDB \u0026 Mongoose.\n\n👉 **JWT Authentication**: User CRUD operations and subscription management.\n\n👉 **Global Error Handling**: Input validation and middleware integration.\n\n👉 **Logging Mechanisms**: For better debugging and monitoring.\n\n👉 **Email Reminders**: Automating smart email reminders with workflows using Upstash.\n\nand many more, including code architecture and reusability\n\n## \u003ca name=\"quick-start\"\u003e🤸 Quick Start\u003c/a\u003e\n\nFollow these steps to set up the project locally on your machine.\n\n**Prerequisites**\n\nMake sure you have the following installed on your machine:\n\n- [Git](https://git-scm.com/)\n- [Node.js](https://nodejs.org/en)\n- [npm](https://www.npmjs.com/) (Node Package Manager)\n\n**Cloning the Repository**\n\n```bash\ngit clone https://github.com/adrianhajdin/subscription-tracker-api.git\ncd subscription-tracker-api\n```\n\n**Installation**\n\nInstall the project dependencies using npm:\n\n```bash\nnpm install\n```\n\n**Set Up Environment Variables**\n\nCreate a new file named `.env.local` in the root of your project and add the following content:\n\n```env\n# PORT\nPORT=5500\nSERVER_URL=\"http://localhost:5500\"\n\n# ENVIRONMENT\nNODE_ENV=development\n\n# DATABASE\nDB_URI=\n\n# JWT AUTH\nJWT_SECRET=\nJWT_EXPIRES_IN=\"1d\"\n\n# ARCJET\nARCJET_KEY=\nARCJET_ENV=\"development\"\n\n# UPSTASH\nQSTASH_URL=http://127.0.0.1:8080\nQSTASH_TOKEN=\n\n# NODEMAILER\nEMAIL_PASSWORD=\n```\n\n**Running the Project**\n\n```bash\nnpm run dev\n```\n\nOpen [http://localhost:5500](http://localhost:5500) in your browser or any HTTP client to test the project.\n\n## \u003ca name=\"snippets\"\u003e🕸️ Snippets\u003c/a\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003eDummy JSON Data\u003c/code\u003e\u003c/summary\u003e\n\n```json\n{\n  \"name\": \"Javascript Mastery Elite Membership\",\n  \"price\": 139.00,\n  \"currency\": \"USD\",\n  \"frequency\": \"monthly\",\n  \"category\": \"Entertainment\",\n  \"startDate\": \"2025-01-20T00:00:00.000Z\",\n  \"paymentMethod\": \"Credit Card\"\n}\n```\n\n\u003c/details\u003e\n\n## \u003ca name=\"links\"\u003e🔗 Links\u003c/a\u003e\n\n- **Arcjet** - [https://launch.arcjet.com/4g2R2e4](https://launch.arcjet.com/4g2R2e4)  \n- **Upstash** - [https://bit.ly/42ealiN](https://bit.ly/42ealiN)  \n- **Hostinger** - [https://hostinger.com/mastery10](https://hostinger.com/mastery10)  \n- **WebStorm** - [https://jb.gg/GetWebStormFree](https://jb.gg/GetWebStormFree)  \n\n## \u003ca name=\"more\"\u003e🚀 More\u003c/a\u003e\n\n**Advance your skills with Next.js Pro Course**\n\nEnjoyed creating this project? Dive deeper into our PRO courses for a richer learning adventure. They're packed with\ndetailed explanations, cool features, and exercises to boost your skills. Give it a go!\n\n\u003ca href=\"https://jsmastery.pro/next15\" target=\"_blank\"\u003e\n   \u003cimg src=\"https://github.com/user-attachments/assets/b8760e69-1f81-4a71-9108-ceeb1de36741\" alt=\"Project Banner\"\u003e\n\u003c/a\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianhajdin%2Fsubscription-tracker-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrianhajdin%2Fsubscription-tracker-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianhajdin%2Fsubscription-tracker-api/lists"}