Web OSKM yes
- Clone repo
git clone https://github.com/KATITB2023/oskm-info.git - Install Yarn
npm install --global yarn - Jalankan
yarn install - Copy file
.env.examplemenjadi.env - Ubah nilai dari
DATABASE_URLmenjadi alamat database kalianNote: Buat terlebih dahulu database dengan nama yang bebas dengan postgres
- Hapus baris
NEXT_PUBLIC_WS_URL="ws://localhost:3000" - Jalankan database migration.
yarn migrate-dev - Jalankan local dev server.
yarn dev
Setiap repository akan memiliki 3 branch utama, yaitu master, development, dan production.
Setiap pembuatan branch baru, buat branch baru dengan base master.
Format: <tipe>/<judul>
List tipe:
- Story, untuk fitur atau use case baru
- Task, untuk bug fixing, performance improvement, refactor, dsb.
Judul: gunakan kebab case
Contoh:
- story/api-attendance
- story/page-attendance
- task/improve-sql-performance-on-xxxx-method
Setelah selesai, Pull Request ke master dan wajib minta peer review ke kadiv/wakadiv.
Sangat dimohon untuk memperhatikan hal-hal berikut:
- Penamaan variabel, fungsi, dan kelas yang bermakna
- Penyingkatan harus mudah ditebak dan masih terbaca
- Misalkan, codeStylingAndRepository, terlalu panjang, disingkat menjadi: codeStyleNRepo
- Yang Salah: csnr, cdStNrep
feat: (new feature for the user, not a new feature for build script)fix: (bug fix for the user, not a fix to a build script)docs: (changes to the documentation)style: (formatting, missing semi colons, etc; no production code change)refactor: (refactoring production code, eg. renaming a variable)test: (adding missing tests, refactoring tests; no production code change)chore: (updating grunt tasks etc; no production code change)