Skip to content

Commit

Permalink
update env var example & readme
Browse files Browse the repository at this point in the history
  • Loading branch information
depapp committed May 3, 2024
1 parent 4ca873d commit 9cee8e7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
19 changes: 14 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
# development

# set these values from the firebase project settings
NEXT_PUBLIC_FIREBASE_API_KEY=""
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=""
NEXT_PUBLIC_FIREBASE_DATABASE_URL=""
NEXT_PUBLIC_FIREBASE_PROJECT_ID=""
NEXT_PUBLIC_PROJECT_ID=""
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=""
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=""
NEXT_PUBLIC_FIREBASE_APP_ID=""
NEXT_PUBLIC_BASE_URL=""
NEXT_PUBLIC_PRIVATE_KEY=""
NEXT_PUBLIC_CLIENT_EMAIL=""

# set this value from the "Realtime Database" --> "Data"
NEXT_PUBLIC_FIREBASE_DATABASE_URL=""

# using localhost for the local development
NEXT_PUBLIC_BASE_URL="http://localhost:3000"

# set these values from .json file in the "Service accounts" --> "Firebase Admin SDK"
NEXT_PUBLIC_PROJECT_ID=""
NEXT_PUBLIC_PRIVATE_KEY="" #example for this value "-----BEGIN PRIVATE KEY-----\nMIIEugIBADANBgkqhkiG9w0BAQEFAASCBKQwggSgAgEAAoIBAQCki3egFXIppEwK.........."
NEXT_PUBLIC_CLIENT_EMAIL=""
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ cd PamerAjaDulu
```bash
npm install
```
- rename file `.env.example` menjadi `.env`, kemudian isi semua value yg dibutuhkan
- copy file `.env.example` dan paste di tempat yang sama
- rename file `.env.example` yang hasil copy-paste tadi menjadi `.env`, kemudian isi semua value yg dibutuhkan
- jalankan projectnya menggunakan
```bash
npm run dev
Expand Down

0 comments on commit 9cee8e7

Please sign in to comment.