Halo teman - teman semua, berikut tutorial untuk menjalakan aplikasi next jsnyaa
Teman teman bisa install package manager nodejs dan npm disini yaaa https://nodejs.org/en/download
- Clone terlebih dahulu github repository
git clone https://github.com/PMK-Daniel/pmkdaniel.git - Buka folder project
cd pmkdaniel - Install package untuk kebutuhan aplikasi
npm install - Selamat mengerjakan!!
npm run dev➡️ Menjalankan website dengan Next.js dan TurboPacknpm run build:prod➡️ Cek format kode pakai Prettier (tanpa ubah), lalu buildnpm run build:local➡️ Rapihin dulu semua file, lalu buildnpm run lint➡️ Cek semua file .js/.ts/.jsx/.tsx buat cari error style/kodenpm run format➡️ Cek formatnpm run format:fix➡️ Auto rapihin semua file
Untuk nama branch harus menggunakan standar seperti berikut :
(nama)-(tipe): (deskripsi)
contoh : jason-feat/navbar
- git add .
- git commit -m "feat: adding navbar section"
- git push origin jason-feat/navbarHarus menggunakan conventional commits!
dengan format tipe: deskripsi
- API or UI relevant changes
featCommits, that add or remove a new feature to the API or UIfixCommits, that fix an API or UI bug of a precededfeatcommit
refactorCommits, that rewrite/restructure your code, however do not change any API or UI behaviourperfCommits are specialrefactorcommits, that improve performance
styleCommits, that do not affect the meaning (white-space, formatting, missing semi-colons, etc)testCommits, that add missing tests or correcting existing testsdocsCommits, that affect documentation onlybuildCommits, that affect build components like build tools, dependencies, project version, ci pipelines, ...opsCommits, that affect operational components like infrastructure, deployment, backup, recovery, ...choreMiscellaneous commits e.g. modifying.gitignore
- git pull
- git pull origin (branch) // untuk pull dari branch lain