Untuk local setup, pastikan environment tersedia dengan requirements berikut:
- Node v20.19.5
- NPM v10.8.2
- Java 21 (Untuk emulator)
- Windows - Guna Git Bash kalau terpaksa pakai lebih dari satu node version, atau jika tiada Admin access.
- VSCode IDE, latest version.
- Any modern browsers.
- Google Developer account (Database with Firestore)
- GitHub (Hosting with Pages, deployment with Actions)
- Clone the repo.
- Guna CLI kegemaran anda, masuk dalam project directory, install node and make sure correct version as above. Then, npm install.
- Buka Firebase Console kat browser, then create project. Dapatkan project ID, api key, etc. Tutorial at https://firebase.google.com/docs/web/setup
- Install Firebase SDK and Firebase Emulator. Tutorial at https://firebase.google.com/docs/firestore/quickstart#web_1
- Initiaite emulator dengan firebase emulators:start. Tutorial at https://firebase.google.com/docs/emulator-suite/connect_and_prototype?database=Firestore
- Start local server dengan npm run dev.
- Now dah ready untuk tambah situasi dan cerita. Happy coding!
- React v19 docs https://react.dev/learn
- Vite v7 docs https://vite.dev/guide/
- Tailwind v4 docs https://tailwindcss.com/docs/installation/using-vite
- React Router docs https://reactrouter.com/home
- i18n docs https://www.i18next.com/overview/getting-started