Skip to content

Cross-chain crypto subscription platform powered by Alchemy's account abstraction infrastructure and Chainlink's Cross-Chain Interoperability Protocol.

Notifications You must be signed in to change notification settings

1802-Labs/supersub-server

Repository files navigation

Supersub Server

This is the server component of Supersub, a subscription platform powered by Alchemy's account abstraction infrastructure and Chainlink's Cross-Chain Interoperability Protocol (CCIP). The server handles various functionalities, including user authentication, subscription management, and interaction with the smart contracts.

Features

  • User Authentication: Securely authenticate users using Privy's authentication infrastructure.
  • Subscription Management: Retrieve subscriptions for different products.
  • Product Management: Manage products, plans, and associated tokens for subscription providers.
  • Transaction History: Retrieve transaction history for deposits and withdrawals related to subscriptions and also integrate with Alchemy's webhook system to handle address activity events.
  • API Key Management: Generate and manage API keys for secure access to the server's functionalities.
  • API Documentation: Detailed documentation for the server's API endpoints is available here.

Technologies Used

  • Node.js: Server-side JavaScript runtime environment.
  • Express.js: Web application framework for Node.js.
  • Prisma: Object-Relational Mapping (ORM) library for interacting with the database.
  • Viem: Ethereum JavaScript library for interacting with Ethereum-based blockchains.
  • Alchemy Web3: Alchemy's Web3 API for interacting with the account abstraction infrastructure.

Getting Started

  1. Clone the repository:
git clone https://github.com/prettyirrelevant/supersub-server
  1. Install dependencies:
npm install
  1. Create a .env file and provide the necessary environment variables from the .env.example file

  2. Setup database and apply migrations:

# Generate Prisma Client
npm run db:generate

# Apply migrations
npm run db:migrate
  1. Start the server
npm run dev

About

Cross-chain crypto subscription platform powered by Alchemy's account abstraction infrastructure and Chainlink's Cross-Chain Interoperability Protocol.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages