overlevered_server
Firebase Cloud Functions server for the overlevered_app.
Overview
The overlevered_server provides:
- Firebase Cloud Functions backend
- Stripe payment processing
- API endpoints for the overlevered_app
Technology Stack
- Runtime: Node.js 20
- Framework: Firebase Functions 5.x
- Language: TypeScript 5.x
- Payments: Stripe
- Database: Firebase Admin SDK
Getting Started
Prerequisites
- Node.js 20
- Bun (preferred) or npm
- Firebase CLI
- Firebase project
Setup
-
Install dependencies:
cd functions
bun install -
Build TypeScript:
bun run build -
Start Firebase emulators:
bun run serve
Key Commands
Development
bun run serve- Start Firebase emulatorsbun run devStart- Start with nodemonbun run build- Build TypeScriptbun run watch- Watch TypeScript files
Deployment
bun run deploy- Deploy to Firebasebun run logs- View function logs
Stripe
bun run stripe:listen- Listen to Stripe webhooks locally
Architecture
The server consists of Firebase Cloud Functions:
- API endpoints for the overlevered_app
- Stripe webhook handlers
- Business logic for licenses and payments
Environment Variables
Configured via Firebase Functions config or .env:
- Stripe API keys
- Firebase project configuration
Documentation
- README.md - Basic documentation
Related Repositories
- overlevered_app - Frontend application