Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/calbabreaker/sawit
Online posting web app
https://github.com/calbabreaker/sawit
firebase full-stack nextjs react tailwindcss typescript
Last synced: 17 days ago
JSON representation
Online posting web app
- Host: GitHub
- URL: https://github.com/calbabreaker/sawit
- Owner: Calbabreaker
- License: mit
- Created: 2022-03-19T05:30:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-28T10:41:23.000Z (9 months ago)
- Last Synced: 2024-10-10T19:35:23.115Z (about 1 month ago)
- Topics: firebase, full-stack, nextjs, react, tailwindcss, typescript
- Language: TypeScript
- Homepage: https://sawit-delta.vercel.app
- Size: 413 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sawit
Online posting web app
## Setup
1. Create firebase project at https://console.firebase.google.com/ and a wep app.
2. Enable the Google auth provider.
3. Go the Firestore database section then to rules and paste the [firebase.rules](./firebase.rules) file into there.
4. Click on the setting icons then `Project Settings`
5. Scroll to the bottom to find the sdk config and put that in [lib/firebase.ts](./lib/firebase.ts).
6. Then go to the `Service Account` tab and download the private config json file.
7. 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=
```8. Start the server and create any indexes it says to.
## Developing
Install [pnpm](https://pnpm.io/) then install dependencies:
```sh
pnpm install
```Then start the dev server:
```sh
pnpm dev
```