Skip to content

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.md

Prerequisites ​

  • Node.js (v18 or higher recommended)
  • Firebase CLI: npm install -g firebase-tools
  • Firebase project credentials
  • Access to Wellysa Firebase project

Setup ​

  1. Clone the repository

    bash
    git clone https://github.com/Wellysa/wellysa-firebase-func.git
    cd wellysa-firebase-func
  2. Install dependencies

    bash
    npm install
    cd functions
    npm install
  3. Login to Firebase

    bash
    firebase login
  4. Set Firebase project

    bash
    firebase use <project-id>
  5. Configure environment (unverified — confirm with team)

    bash
    firebase functions:config:set service.key="value"

Development ​

Run functions locally ​

bash
cd functions
npm run serve

Build TypeScript ​

bash
cd functions
npm run build

Lint code ​

bash
cd functions
npm run lint

Deployment ​

Deploy all functions ​

bash
firebase deploy --only functions

Deploy specific function ​

bash
firebase deploy --only functions:functionName

Functions 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:log

Monitor in Firebase Console:

Contributing ​

  1. Create a feature branch from main
  2. Make changes and test locally
  3. Run linter: npm run lint
  4. Build TypeScript: npm run build
  5. 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

Wellysa Consigliere — internal use only.