Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/a-samod/subscription-management-backend
The backend for the subscription management application is built using Node.js and MongoDB, providing functionalities such as creating subscription groups, adding members, and tracking payments.
https://github.com/a-samod/subscription-management-backend
crud mongodb nodejs subscription-management
Last synced: about 1 month ago
JSON representation
The backend for the subscription management application is built using Node.js and MongoDB, providing functionalities such as creating subscription groups, adding members, and tracking payments.
- Host: GitHub
- URL: https://github.com/a-samod/subscription-management-backend
- Owner: A-Samod
- Created: 2024-05-21T04:55:38.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-23T17:29:12.000Z (7 months ago)
- Last Synced: 2024-11-07T04:34:44.345Z (3 months ago)
- Topics: crud, mongodb, nodejs, subscription-management
- Language: JavaScript
- Homepage: https://subscription-management-backend-ace1.onrender.com
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Subscription Management Backend
This backend for the subscription management application is built using Node.js and MongoDB, following a clean architecture approach. It includes functionalities such as creating and managing subscription groups, adding members to groups, and tracking payments. The backend uses Express for handling HTTP requests and Mongoose for interacting with MongoDB.
## Features
- **User Management**: CRUD operations for user accounts
- **Group Management**: Create and manage subscription groups
- **Member Management**: Add and manage group members
- **Payment Tracking**: Record and track payments related to group members## Technologies Used
- Node.js
- Express.js
- MongoDB
- Mongoose## Getting Started
### Prerequisites
- Node.js and npm installed
- MongoDB installed and running### Installation
1. Clone the repository:
```bash
git clone https://github.com/your-username/subscription-management-backend.git
```
2. Navigate to the project directory:```bash
cd subscription-management-backend
```3. Install the dependencies:
```bash
npm install
```4. Create a .env file in the root directory and add the following environment variables:
```bash
MONGO_URI=mongodb://your_mongo_db_uri
PORT=5000
```
Running the Application1. Start the server:
```bash
npm start
```
2. The backend server will be running at http://localhost:5000.## API Endpoints
**User Endpoints**
- Create User: `POST /api/users`
- Get All Users: `GET /api/users`
- Get User By ID: `GET /api/users/:userId`
- Update User: `PUT /api/users/:userId`
- Delete User: `DELETE /api/users/:userId`**Group Endpoints**
- Create Group: `POST /api/groups`
- Get All Groups: `GET /api/groups`
- Get Group By ID: `GET /api/groups/:groupId`
- Update Group: `PUT /api/groups/:groupId`
- Delete Group: `DELETE /api/groups/:groupId`
## Contributing
1. Fork the repository.
2. Create a new branch: git checkout -b feature-branch-name
3. Make your changes and commit them: git commit -m 'Add some feature'
4. Push to the branch: git push origin feature-branch-name
5. Open a pull request.