Skip to content

Commit 6bdc3fd

Browse files
lwinmoepaingclaude
andcommitted
✨ feat: add Firebase dev setup guide page with i18n support
- New /how-to-develop-setup page with 10-step Firebase setup guide - Beginner-friendly with terminal blocks for each step - Full Myanmar/English translations - Consistent UI with HowTo page (timeline, CTA card) - Added footer navigation link - Updated CLAUDE.md Next.js version to 16.1.6 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dfe79d1 commit 6bdc3fd

6 files changed

Lines changed: 752 additions & 1 deletion

File tree

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Myanmar Software Engineers (MMSWE) — a community platform showcasing Myanmar s
66

77
## Tech Stack
88

9-
- **Framework**: Next.js 13.5.4 (App Router, TypeScript, static export)
9+
- **Framework**: Next.js 16.1.6 (App Router, TypeScript, static export)
1010
- **Package Manager**: Bun (primary)
1111
- **Styling**: Tailwind CSS + DaisyUI + Sass
1212
- **Content**: Contentlayer with MDX (profiles and blogs)

messages/en.json

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,77 @@
280280
"accessDeniedDesc": "You don't have permission to view this page.",
281281
"backToBlog": "Back to Blog"
282282
},
283+
"devSetup": {
284+
"label": "Development Setup",
285+
"title": "Firebase Setup Guide",
286+
"subtitle": "Follow these {count} steps to set up Firebase for local development. Beginner-friendly — no prior experience needed.",
287+
"step1Title": "Create a Google Account",
288+
"step1Desc": "Firebase is a Google product, so you need a Google account. If you already have a Gmail account, skip this step.",
289+
"step1Line1": "Go to: accounts.google.com/signup",
290+
"step1Line2": "Fill in your name and create a username",
291+
"step1Line3": "Set a password and verify your phone",
292+
"step1Line4": "Done! You now have a Google account",
293+
"step2Title": "Create a Firebase Project",
294+
"step2Desc": "Go to the Firebase Console and create a new project for your development environment.",
295+
"step2Line1": "Go to: console.firebase.google.com",
296+
"step2Line2": "Click \"Create a project\" or \"Add project\"",
297+
"step2Line3": "Enter project name (e.g. mmswe-dev)",
298+
"step2Line4": "Enable or skip Google Analytics",
299+
"step2Line5": "Click \"Create project\" and wait ~30 seconds",
300+
"step3Title": "Register a Web App",
301+
"step3Desc": "Inside your Firebase project, register a web application to get your credentials.",
302+
"step3Line1": "On Project Overview, click the Web icon",
303+
"step3Line2": "Enter an app nickname (e.g. mmswe-web)",
304+
"step3Line3": "Skip Firebase Hosting (uncheck it)",
305+
"step3Line4": "Click \"Register app\"",
306+
"step4Title": "Copy Firebase Config",
307+
"step4Desc": "After registering, Firebase shows your config values. Copy them — you'll need these for your .env.local file.",
308+
"step4Line1": "apiKey: \"AIzaSy...\"",
309+
"step4Line2": "authDomain: \"your-project.firebaseapp.com\"",
310+
"step4Line3": "projectId: \"your-project-id\"",
311+
"step4Line4": "storageBucket: \"your-project.firebasestorage.app\"",
312+
"step4Line5": "messagingSenderId: \"123456789\"",
313+
"step4Line6": "appId: \"1:123456789:web:abc123\"",
314+
"step4Tip": "You can find these anytime at: Project Settings → General → Your apps",
315+
"step5Title": "Enable Google Authentication",
316+
"step5Desc": "Set up Google sign-in so users can log in to the platform.",
317+
"step5Line1": "Sidebar → Build → Authentication → Get started",
318+
"step5Line2": "Click \"Sign-in method\" tab",
319+
"step5Line3": "Click \"Google\" → Toggle Enable → Save",
320+
"step5Line4": "Set your project name and support email",
321+
"step6Title": "Create Firestore Database",
322+
"step6Desc": "Firestore stores blog posts, job listings, and user data.",
323+
"step6Line1": "Sidebar → Build → Firestore Database",
324+
"step6Line2": "Click \"Create database\"",
325+
"step6Line3": "Choose location (asia-southeast1 for Myanmar)",
326+
"step6Line4": "Start in \"Test mode\" for development",
327+
"step6Line5": "Click \"Create\"",
328+
"step7Title": "Create Firebase Storage",
329+
"step7Desc": "Storage handles image uploads for blog cover photos and user avatars.",
330+
"step7Line1": "Sidebar → Build → Storage",
331+
"step7Line2": "Click \"Get started\"",
332+
"step7Line3": "Start in \"Test mode\" for development",
333+
"step7Line4": "Click \"Done\"",
334+
"step8Title": "Clone & Install the Project",
335+
"step8Desc": "Clone the MMSWE repository and install dependencies using Bun. If you already have the code cloned, just run bun install and skip to the next step.",
336+
"step9Title": "Set Up Environment Variables",
337+
"step9Desc": "Create your .env.local file and paste the Firebase config values from Step 4.",
338+
"step9Line1": "cp .env.example .env.local",
339+
"step9Line2": "# Then edit .env.local with your Firebase values:",
340+
"step9Line3": "NEXT_PUBLIC_FIREBASE_API_KEY=your-api-key",
341+
"step9Line4": "NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your-project.firebaseapp.com",
342+
"step9Line5": "NEXT_PUBLIC_FIREBASE_PROJECT_ID=your-project-id",
343+
"step9Line6": "NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your-project.firebasestorage.app",
344+
"step9Line7": "NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=123456789",
345+
"step9Line8": "NEXT_PUBLIC_FIREBASE_APP_ID=1:123456789:web:abc123",
346+
"step9Line9": "NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=G-XXXXXXXXXX",
347+
"step10Title": "Run the Dev Server",
348+
"step10Desc": "Start the development server and open the app in your browser.",
349+
"ctaComplete": "Setup Complete!",
350+
"ctaDesc": "You're all set to develop locally with Firebase. Sign in with Google, create blog posts, and test job listings.",
351+
"ctaOpenApp": "Open Dev Server",
352+
"ctaViewGuide": "View How-to Guide"
353+
},
283354
"profileHero": {
284355
"label": "Developer Directory",
285356
"title": "Profiles",
@@ -301,6 +372,7 @@
301372
"blog": "Blog",
302373
"contactUs": "Contact Us",
303374
"jobs": "Jobs",
375+
"devSetup": "Dev Setup",
304376
"community": "Community",
305377
"github": "GitHub Organization",
306378
"facebook": "Facebook Group",

messages/mm.json

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,77 @@
280280
"accessDeniedDesc": "ဤစာမျက်နှာကို ကြည့်ရှုခွင့် မရှိပါ။",
281281
"backToBlog": "ဘလော့ဂ် သို့ ပြန်သွားရန်"
282282
},
283+
"devSetup": {
284+
"label": "ဆော့ဖ်ဝဲ ပတ်ဝန်းကျင် စတင်ရန်",
285+
"title": "Firebase စတင်အသုံးပြုနည်း",
286+
"subtitle": "Local development အတွက် Firebase ကို စတင်ရန် ဤအဆင့် {count} ဆင့်ကို လိုက်နာပါ။ အတွေ့အကြုံ မလိုပါ - အစကနေ လမ်းညွှန်ပေးပါမည်။",
287+
"step1Title": "Google အကောင့် ဖန်တီးပါ",
288+
"step1Desc": "Firebase သည် Google ၏ ထုတ်ကုန်ဖြစ်သောကြောင့် Google အကောင့် လိုအပ်ပါသည်။ Gmail အကောင့် ရှိပြီးသားဆိုလျှင် ဤအဆင့်ကို ကျော်လိုက်ပါ။",
289+
"step1Line1": "ဒီကိုသွားပါ: accounts.google.com/signup",
290+
"step1Line2": "အမည်နှင့် username ဖြည့်ပါ",
291+
"step1Line3": "လျှို့ဝှက်နံပါတ် သတ်မှတ်ပြီး ဖုန်းနံပါတ် အတည်ပြုပါ",
292+
"step1Line4": "ပြီးပါပြီ! Google အကောင့် ရရှိပါပြီ",
293+
"step2Title": "Firebase Project ဖန်တီးပါ",
294+
"step2Desc": "Firebase Console သို့ သွားပြီး သင့် development အတွက် project အသစ် ဖန်တီးပါ။",
295+
"step2Line1": "ဒီကိုသွားပါ: console.firebase.google.com",
296+
"step2Line2": "\"Create a project\" သို့မဟုတ် \"Add project\" ကို နှိပ်ပါ",
297+
"step2Line3": "Project အမည် ထည့်ပါ (ဥပမာ - mmswe-dev)",
298+
"step2Line4": "Google Analytics ကို ဖွင့်ပါ သို့မဟုတ် ကျော်ပါ",
299+
"step2Line5": "\"Create project\" ကို နှိပ်ပြီး စက္ကန့် ၃၀ ခန့် စောင့်ပါ",
300+
"step3Title": "Web App မှတ်ပုံတင်ပါ",
301+
"step3Desc": "Firebase project ထဲတွင် web application ကို မှတ်ပုံတင်ပြီး credentials များ ရယူပါ။",
302+
"step3Line1": "Project Overview တွင် Web icon ကို နှိပ်ပါ",
303+
"step3Line2": "App nickname ထည့်ပါ (ဥပမာ - mmswe-web)",
304+
"step3Line3": "Firebase Hosting ကို ကျော်ပါ (uncheck လုပ်ပါ)",
305+
"step3Line4": "\"Register app\" ကို နှိပ်ပါ",
306+
"step4Title": "Firebase Config ကူးယူပါ",
307+
"step4Desc": "မှတ်ပုံတင်ပြီးနောက် Firebase က config values များ ပြပါမည်။ ကူးယူပါ - .env.local ဖိုင်တွင် သုံးရပါမည်။",
308+
"step4Line1": "apiKey: \"AIzaSy...\"",
309+
"step4Line2": "authDomain: \"your-project.firebaseapp.com\"",
310+
"step4Line3": "projectId: \"your-project-id\"",
311+
"step4Line4": "storageBucket: \"your-project.firebasestorage.app\"",
312+
"step4Line5": "messagingSenderId: \"123456789\"",
313+
"step4Line6": "appId: \"1:123456789:web:abc123\"",
314+
"step4Tip": "ဤတန်ဖိုးများကို အချိန်မရွေး ရှာနိုင်ပါသည်: Project Settings → General → Your apps",
315+
"step5Title": "Google Authentication ဖွင့်ပါ",
316+
"step5Desc": "အသုံးပြုသူများ platform သို့ Google ဖြင့် ဝင်ရောက်နိုင်ရန် Google sign-in ကို စနစ်ထည့်သွင်းပါ။",
317+
"step5Line1": "Sidebar → Build → Authentication → Get started",
318+
"step5Line2": "\"Sign-in method\" tab ကို နှိပ်ပါ",
319+
"step5Line3": "\"Google\" ကို နှိပ်ပါ → Enable ဖွင့်ပါ → Save",
320+
"step5Line4": "Project name နှင့် support email ထည့်ပါ",
321+
"step6Title": "Firestore Database ဖန်တီးပါ",
322+
"step6Desc": "Firestore သည် blog posts, job listings နှင့် user data များကို သိမ်းဆည်းပါသည်။",
323+
"step6Line1": "Sidebar → Build → Firestore Database",
324+
"step6Line2": "\"Create database\" ကို နှိပ်ပါ",
325+
"step6Line3": "တည်နေရာ ရွေးပါ (မြန်မာအတွက် asia-southeast1)",
326+
"step6Line4": "Development အတွက် \"Test mode\" ကို ရွေးပါ",
327+
"step6Line5": "\"Create\" ကို နှိပ်ပါ",
328+
"step7Title": "Firebase Storage ဖန်တီးပါ",
329+
"step7Desc": "Storage သည် blog cover photos နှင့် user avatars အတွက် ပုံများ upload လုပ်ရာတွင် အသုံးပြုပါသည်။",
330+
"step7Line1": "Sidebar → Build → Storage",
331+
"step7Line2": "\"Get started\" ကို နှိပ်ပါ",
332+
"step7Line3": "Development အတွက် \"Test mode\" ကို ရွေးပါ",
333+
"step7Line4": "\"Done\" ကို နှိပ်ပါ",
334+
"step8Title": "Project ကို Clone နှင့် Install လုပ်ပါ",
335+
"step8Desc": "MMSWE repository ကို clone လုပ်ပြီး Bun ဖြင့် dependencies များ install လုပ်ပါ။ code ရှိပြီးသားဆိုလျှင် bun install သာ run ပြီး နောက်အဆင့်သို့ ကျော်လိုက်ပါ။",
336+
"step9Title": "Environment Variables စနစ်ထည့်ပါ",
337+
"step9Desc": ".env.local ဖိုင် ဖန်တီးပြီး အဆင့် ၄ မှ Firebase config values များကို ထည့်ပါ။",
338+
"step9Line1": "cp .env.example .env.local",
339+
"step9Line2": "# ထို့နောက် .env.local ကို သင့် Firebase values များဖြင့် ပြင်ပါ:",
340+
"step9Line3": "NEXT_PUBLIC_FIREBASE_API_KEY=your-api-key",
341+
"step9Line4": "NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your-project.firebaseapp.com",
342+
"step9Line5": "NEXT_PUBLIC_FIREBASE_PROJECT_ID=your-project-id",
343+
"step9Line6": "NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your-project.firebasestorage.app",
344+
"step9Line7": "NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=123456789",
345+
"step9Line8": "NEXT_PUBLIC_FIREBASE_APP_ID=1:123456789:web:abc123",
346+
"step9Line9": "NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=G-XXXXXXXXXX",
347+
"step10Title": "Dev Server ကို ဖွင့်ပါ",
348+
"step10Desc": "Development server ကို စတင်ပြီး browser တွင် app ကို ဖွင့်ပါ။",
349+
"ctaComplete": "စနစ်ထည့်သွင်းမှု ပြီးပါပြီ!",
350+
"ctaDesc": "Firebase ဖြင့် local development အတွက် အဆင်သင့် ဖြစ်ပါပြီ။ Google ဖြင့် ဝင်ရောက်ပါ၊ blog posts ဖန်တီးပါ၊ job listings များ စမ်းသပ်ပါ။",
351+
"ctaOpenApp": "Dev Server ဖွင့်ရန်",
352+
"ctaViewGuide": "လမ်းညွှန် ကြည့်ရန်"
353+
},
283354
"profileHero": {
284355
"label": "Developer လမ်းညွှန်",
285356
"title": "ပရိုဖိုင်များ",
@@ -301,6 +372,7 @@
301372
"blog": "ဘလော့ဂ်",
302373
"contactUs": "ဆက်သွယ်ရန်",
303374
"jobs": "အလုပ်များ",
375+
"devSetup": "Development Setup စတင်ရန်",
304376
"community": "အသိုင်းအဝိုင်း",
305377
"github": "GitHub အဖွဲ့အစည်း",
306378
"facebook": "Facebook အဖွဲ့အစည်း",

0 commit comments

Comments
 (0)