A lightweight, efficient, and secure RESTful API designed to help users track and manage their subscriptions in one place. The Subscription Tracker API enables developers to integrate subscription management features into their apps, dashboards, or automation tools.

This API allows users to:
- Add and manage subscriptions
- Track renewal dates
- Get alerts for upcoming renewals
- Calculate total monthly and yearly costs
- Categorize subscriptions by type (Entertainment, Utilities, SaaS, etc.)
- Manage user accounts securely
- CRUD operations for subscriptions
- User authentication (JWT-based)
- Cost analysis (monthly & annual)
- Renewal reminders support
- Category-based filtering
- RESTful endpoints for easy integration
- MongoDB Atlas database support
- Error handling & validation built-in
- Backend: Node.js / Express
- Database: MongoDB / MongoDB Atlas
- Auth: JWT, bcrypt
- Tools: Postman / Supertest for testing
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/auth/register |
Register a new user |
| POST | /api/auth/login |
Log in user & get token |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/subscriptions |
Get all subscriptions for user |
| POST | /api/subscriptions |
Add new subscription |
| GET | /api/subscriptions/:id |
Get subscription by ID |
| PUT | /api/subscriptions/:id |
Update subscription |
| DELETE | /api/subscriptions/:id |
Delete subscription |
- Clone the repo:
git clone https://github.com/your-username/subscription-tracker-api.git- Install dependencies:
npm install- Add your environment variables in
.env:
MONGO_URI=your-mongodb-atlas-uri
JWT_SECRET=your-secret
PORT=5000
- Start server:
npm run devTo run automated tests:
npm testClean. Simple. Reliable. Your all-in-one subscription management API.