Example combining Firebase SDK (mainly Firestore DB), Preact, Typescript, Tailwind created with Vite.
Create an .env
file starting from the .env.example
template and add your appID
value from the Firebase Dashboard.
messages
cd
's into into and install dependencies with$ npm ci
.env.example
in a new .env
fileappId
and projectID
from your Firebase project settings$ npm run dev
This repo contains a ./github/workflows/build.yml
file which is configured to build the application with Github Actions and deploy on Github Pages.
In order for the build to work you will also have to add 2 new Secrets in Github repository settings: VITE_APPID
and VITE_PROJECTID
with the same values you previously used for the .env
file.
Released with MIT license.