Skip to content

New-Release

Pre-release
Pre-release

Choose a tag to compare

@cpojha cpojha released this 03 Mar 14:08
· 12 commits to main since this release
191621e

πŸš€ 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: