Online posting web app
- Create firebase project at https://console.firebase.google.com/ and a wep app.
- Enable the Google auth provider.
- Go the Firestore database section then to rules and paste the firebase.rules file into there.
- Click on the setting icons then
Project Settings
- Scroll to the bottom to find the sdk config and put that in lib/firebase.ts.
- Then go to the
Service Account
tab and download the private config json file. - Create a file named
.env.local
in the project directory with these contents using the corresponding values from the json file (make sure to include the quotes):
PRIVATE_KEY=
CLIENT_EMAIL=
PROJECT_ID=
- Start the server and create any indexes it says to.
Install pnpm then install dependencies:
pnpm install
Then start the dev server:
pnpm dev