https://github.com/adrianhajdin/subscription-tracker-api
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!
https://github.com/adrianhajdin/subscription-tracker-api
api backend javascript nodejs
Last synced: about 1 month ago
JSON representation
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!
- Host: GitHub
- URL: https://github.com/adrianhajdin/subscription-tracker-api
- Owner: adrianhajdin
- Created: 2025-02-07T23:51:25.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-02-08T13:27:07.000Z (8 months ago)
- Last Synced: 2025-08-28T11:10:31.137Z (about 1 month ago)
- Topics: api, backend, javascript, nodejs
- Language: JavaScript
- Homepage: https://jsmastery.pro
- Size: 44.9 KB
- Stars: 356
- Watchers: 1
- Forks: 86
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
![]()
![]()
![]()
A Subscription Management System API
Build this project step by step with our detailed tutorial on JavaScript Mastery YouTube. Join the JSM family!
## π Table of Contents
1. π€ [Introduction](#introduction)
2. βοΈ [Tech Stack](#tech-stack)
3. π [Features](#features)
4. π€Έ [Quick Start](#quick-start)
5. πΈοΈ [Snippets (Code to Copy)](#snippets)
6. π [Assets](#links)
7. π [More](#more)## π¨ Tutorial
This repository contains the code corresponding to an in-depth tutorial available on our YouTube channel, JavaScript Mastery.
If 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!
Build a **production-ready Subscription Management System API** that handles **real users, real money, and real business logic**.
Authenticate 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.
If 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.
- Node.js
- Express.js
- MongoDBπ **Advanced Rate Limiting and Bot Protection**: with Arcjet that helps you secure the whole app.
π **Database Modeling**: Models and relationships using MongoDB & Mongoose.
π **JWT Authentication**: User CRUD operations and subscription management.
π **Global Error Handling**: Input validation and middleware integration.
π **Logging Mechanisms**: For better debugging and monitoring.
π **Email Reminders**: Automating smart email reminders with workflows using Upstash.
and many more, including code architecture and reusability
Follow these steps to set up the project locally on your machine.
**Prerequisites**
Make sure you have the following installed on your machine:
- [Git](https://git-scm.com/)
- [Node.js](https://nodejs.org/en)
- [npm](https://www.npmjs.com/) (Node Package Manager)**Cloning the Repository**
```bash
git clone https://github.com/adrianhajdin/subscription-tracker-api.git
cd subscription-tracker-api
```**Installation**
Install the project dependencies using npm:
```bash
npm install
```**Set Up Environment Variables**
Create a new file named `.env.local` in the root of your project and add the following content:
```env
# PORT
PORT=5500
SERVER_URL="http://localhost:5500"# ENVIRONMENT
NODE_ENV=development# DATABASE
DB_URI=# JWT AUTH
JWT_SECRET=
JWT_EXPIRES_IN="1d"# ARCJET
ARCJET_KEY=
ARCJET_ENV="development"# UPSTASH
QSTASH_URL=http://127.0.0.1:8080
QSTASH_TOKEN=# NODEMAILER
EMAIL_PASSWORD=
```**Running the Project**
```bash
npm run dev
```Open [http://localhost:5500](http://localhost:5500) in your browser or any HTTP client to test the project.
Dummy JSON Data
```json
{
"name": "Javascript Mastery Elite Membership",
"price": 139.00,
"currency": "USD",
"frequency": "monthly",
"category": "Entertainment",
"startDate": "2025-01-20T00:00:00.000Z",
"paymentMethod": "Credit Card"
}
```## π Links
- **Arcjet** - [https://launch.arcjet.com/4g2R2e4](https://launch.arcjet.com/4g2R2e4)
- **Upstash** - [https://bit.ly/42ealiN](https://bit.ly/42ealiN)
- **Hostinger** - [https://hostinger.com/mastery10](https://hostinger.com/mastery10)
- **WebStorm** - [https://jb.gg/GetWebStormFree](https://jb.gg/GetWebStormFree)## π More
**Advance your skills with Next.js Pro Course**
Enjoyed creating this project? Dive deeper into our PRO courses for a richer learning adventure. They're packed with
detailed explanations, cool features, and exercises to boost your skills. Give it a go!