Skip to content

🪙 Express app for stripe fetching subscriptions

Notifications You must be signed in to change notification settings

bottlycorp/subscriptions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Subscriptions for Bottly

An express application so that when a subscription has arrived, it is given advantages on the bot

Installation:

Use PNPM or PNPM and install the pacakges pnpm install or npm install.

Set the required environment variables

DATABASE_URL="Your database URL if you want edit data when a user subscribe"
// If you use Railway, define this environment variable for set Node.JS 18
// NIXPACKS_NODE_VERSION=18
PORT=4242
STRIPE_PUBLIC_KEY="Your Stripe public key"
STRIPE_SECRET_KEY="Your Stripe secret key"
STRIPE_ENDPOINT_SECRET="Your Stripe endpoint secret"

Initialize your prisma (if you want use the database)

Use the command npx prisma db pull to retrieve your database if you have already created tables

Or create your models and then do npx prisma db push to send your changes to the database

Then do npx prisma generate to generate your types.

Lauch the app

Use pnpm or npm, run dev or run start

Usage

image

About

🪙 Express app for stripe fetching subscriptions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published