Skip to content

Sample FERN stack project - Firebase, Express, React, Node

Notifications You must be signed in to change notification settings

bhaskarmurthy/fern-stack

Repository files navigation

FERN Stack

npx create-remix@latest --template remix-run/blues-stack

What's in the stack

Development

  • Setup runtime versions:

    asdf install
  • Intialize Firebase project:

    firebase init
    # update .firebaserc with project name
  • Build functions:

    cd functions
    pnpm install
    pnpm run build
  • Build hosting:

    cd web
    pnpm install
    pnpm run build
  • Start dev emulators:

    firebase emulators:start --only hosting,functions

Deployment

  • Deploy functions

    cd functions
    pnpm run deploy
  • Deploy hosting

    cd web
    pnpm run build
    pnpm run deploy