Skip to content

devgrunge/billing-service

Repository files navigation

Billing Service

This project is a NestJS application that utilizes the Stripe Node library to provide a subscription service through a RESTful API.

🚀 Technologies Used

📦 Installation

  1. Clone the repository:

    git clone https://github.com/devgrunge/billing-service.git
  2. Navigate to the project directory:

    cd billing-service
  3. Install the dependencies:

    npm install

⚙️ Configuration

Create a .env file in the root of the project and add your Stripe credentials:

STRIPE_SECRET_KEY=your_stripe_secret_key

🧪 Running the Application

To start the application in development mode:

npm run start:dev

The application will be available at http://localhost:3000.

🧪 Testing

To run the tests:

npm run test

📌 Features

  • Create and manage customers in Stripe
  • Create and manage subscription plans
  • Subscribe customers to plans
  • Cancel subscriptions
  • Webhook for Stripe events

📁 Project Structure

billing-service/
├── src/
│   ├── modules/
│   │   ├── customers/
│   │   ├── subscriptions/
│   │   └── plans/
│   ├── common/
│   └── main.ts
├── test/
├── .env
├── package.json
└── tsconfig.json

🤝 Contributing

Contributions are welcome! Please open an issue or submit a pull request.

📄 License

This project is licensed under the MIT License.

About

NestJs application wich uses the stripe node library to provide an subscription service through a Rest Api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published