A minimal Firebase Cloud Functions starter template with TypeScript.
Includes: Firebase Functions v2, TypeScript, ESLint, and a sample hello
HTTP function.
- Click Use this template on GitHub.
- Clone your new repo:
bash git clone https://github.com/YOUR_GITHUB_USERNAME/dad-firebase-functions-template my-app cd my-app
bash
npx degit daboigbae/dad-firebase-functions-template YOUR_PROJECT_NAME
cd YOUR_PROJECT_NAME
- Install dependencies:
cd functions && npm install
- Replace
YOUR_FIREBASE_PROJECT_ID
in.firebaserc
. - Update the
name
field inpackage.json
to your project name. - Run
firebase login
andfirebase use --add
. - Build the project:
cd functions && npm run build
- Test locally with
npm run dev
(or usenpm run serve
to build + run emulator) - Run linting:
cd functions && npm run lint
- Deploy with
npm run deploy
.
YOUR_PROJECT_NAME/
├── firebase.json # Emulator + deploy config
├── .firebaserc # Project alias (replace with your ID)
├── package.json # Root scripts (update name field)
├── functions/
│ ├── src/
│ │ ├── index.ts # Main exports + sample hello function
│ │ └── firebase/
│ │ └── authentication/
│ │ ├── onUserSignup.ts # User creation handler
│ │ └── onUserDelete.ts # User deletion handler
│ ├── tsconfig.json # TypeScript config
│ └── package.json # Functions deps + build scripts
└── README.md # You are here
Made with ❤️ by Digital Art Dealers