Appearance
wellysa-firebase-func
Firebase Cloud Functions backend for Wellysa platform. This repository contains serverless functions that handle backend logic, API endpoints, and event-driven processing.
Tech Stack
- Runtime: Node.js with TypeScript
- Firebase Admin SDK: v12.4.0
- Firebase Functions: v5.1.1
- Linting: ESLint
- Build: TypeScript compiler
Project Structure
wellysa-firebase-func/
├── functions/
│ ├── src/
│ │ └── index.ts # Main functions entry point
│ ├── package.json # Functions dependencies
│ ├── tsconfig.json # TypeScript configuration
│ ├── tsconfig.dev.json # Development TypeScript config
│ └── .eslintrc.js # Linting rules
├── firebase.json # Firebase project configuration
└── README.mdPrerequisites
- Node.js (v18 or higher recommended)
- Firebase CLI:
npm install -g firebase-tools - Firebase project credentials
- Access to Wellysa Firebase project
Setup
Clone the repository
bashgit clone https://github.com/Wellysa/wellysa-firebase-func.git cd wellysa-firebase-funcInstall dependencies
bashnpm install cd functions npm installLogin to Firebase
bashfirebase loginSet Firebase project
bashfirebase use <project-id>Configure environment (unverified — confirm with team)
bashfirebase functions:config:set service.key="value"
Development
Run functions locally
bash
cd functions
npm run serveBuild TypeScript
bash
cd functions
npm run buildLint code
bash
cd functions
npm run lintDeployment
Deploy all functions
bash
firebase deploy --only functionsDeploy specific function
bash
firebase deploy --only functions:functionNameFunctions Overview
(unverified — confirm with team)
The exact functions implemented in functions/src/index.ts should be documented here. Common patterns for Wellysa platform may include:
- HTTP triggered endpoints for API
- Firestore triggers for data processing
- Authentication triggers for user management
- Scheduled functions for background tasks
TODO: Update this section after reviewing functions/src/index.ts implementation details.
Environment Variables
(unverified — confirm with team)
Document required Firebase config and environment variables:
bash
# Example - update with actual required config
firebase functions:config:set api.key="YOUR_API_KEY"Monitoring & Logs
View function logs:
bash
firebase functions:logMonitor in Firebase Console:
Contributing
- Create a feature branch from
main - Make changes and test locally
- Run linter:
npm run lint - Build TypeScript:
npm run build - Submit pull request for review
Support
For issues or questions regarding Wellysa Firebase Functions, contact the development team or create an issue in this repository.
Last Updated: 2026-05-10
Maintained by: Wellysa Development Team