An open API service indexing awesome lists of open source software.

https://github.com/yamcodes/turborepo-firebase-starter

Get a head start on your Firebase Turborepo 🔥
https://github.com/yamcodes/turborepo-firebase-starter

firebase turborepo turborepo-example turborepo-starter turborepo-template

Last synced: 5 months ago
JSON representation

Get a head start on your Firebase Turborepo 🔥

Awesome Lists containing this project

README

          

# Turborepo Firebase starter

This is an unofficial starter Turborepo.

### Who is this for?

You want to combine [turborepo](https://turborepo.org/) and [firebase](https://firebase.google.com/) to have idempotent deployments locally and in CI/CD.

## What's inside?

This Turborepo includes the following packages/apps:

### Apps and packages

```
├── apps
│ ├── api # firebase function that is typescript and loaded as ESM and deployed as a firebase function
│ └── web # the react+vite front end deployed to firebase hosting
```

Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).

### Prerequisites

- [Node.js](https://nodejs.org/en/download/)
- [pnpm](https://pnpm.io/installation)
- [Firebase CLI](https://firebase.google.com/docs/cli)
- A [Firebase project](https://firebase.google.com/docs/projects/create)

### Setup

1. Edit `.firebaserc` and add your project's id
2. Install dependencies

```sh
pnpm i
```

### Develop

```sh
pnpm start
```

### Deploy

```sh
pnpm deploy
```

## Special thanks

[Hacksore](https://github.com/hacksore) for making [turborepo-firebase-example](https://github.com/hacksore/turborepo-firebase-example). This project is a fork that updates the toolkit to support [pnpm](https://pnpm.io/installation) and the [Vercel style guide](https://github.com/vercel/style-guide).