Skip to content

Releases: cpojha/Subscription-API

New-Release

03 Mar 14:08
191621e

Choose a tag to compare

New-Release Pre-release
Pre-release

🚀 Subscription API - v1.0.0

🎉 Initial Release

This is the first release of Subscription API, a robust backend system for managing user subscriptions with authentication and secure token-based access.

🛠 Features

User Authentication: Secure JWT-based login and signup
Refresh Tokens: Implements refresh token mechanism for session management
Subscription Management: Easily manage user subscriptions
MongoDB Integration: Uses Mongoose for seamless database operations
RESTful API: Well-structured API endpoints for smooth integration

📦 Installation

  1. Clone the repository
    git clone https://github.com/cpojha/Subscription-API.git
    cd Subscription-API
    
  2. Install dependencies
    npm install
    
  3. Set up environment variables
    Create a .env file and add:
    MONGO_URI=your_mongodb_connection_string
    JWT_SECRET=your_secret_key
    REFRESH_SECRET=your_refresh_token_secret
    
  4. Run the API
    npm start
    
    The server will start at http://localhost:5000

🔗 API Endpoints

Method Endpoint Description
POST /api/auth/signup Register a new user
POST /api/auth/login Authenticate user
POST /api/auth/refresh Generate new access token
GET /api/subscription Get user subscription info
POST /api/subscription Create a subscription

🛠️ Improvements in Future Releases

  • ✅ Role-based access control (RBAC)
  • ✅ Subscription plan upgrades
  • ✅ API rate limiting for security
  • ✅ Webhooks for real-time updates

🎯 Contributors

@cpojha


💡 Have feedback or ideas? Open an issue or submit a pull request! 🚀


This markdown can be used in your GitHub releases section. Let me know if you need any modifications! 😊

Here's a **Markdown release note** for your **Subscription-API** project: