bun install
npx prisma migrate dev --name init
To run:
bun run dev
Build and Deploy to production (Compile to binary):
bun run build
./server
Deploy to production (PM2):
pm2 start ecosystem.config.cjs --env production
🎉 Initial commit
👷 build: — เปลี่ยนแปลงระบบ build หรือ dependencies เช่น npm เป็นต้น
✨ feat: — ใช้สำหรับการเพิ่มฟีเจอร์ใหม่ลงมาใน Codebase ของเรา
🐛 fix: — ใช้สำหรับการแก้ไข Bug ต่าง ๆ ใน Codebase
📚 docs: — ประเภทนี้ใช้สำหรับการที่เราเปลี่ยนแปลงแค่เฉพาะ Document
🎨 style: — เปลี่ยนแค่สไตล์ ไม่กระทบกับฟังก์ชัน
♻️ chore: — การเปลี่ยนแปลงอื่นๆ ที่ไม่ได้แก้ไขไฟล์ src หรือ test
🔨 refactor: — ปรับโครงสร้างโค้ด ทำความสะอาดโค้ด ให้ดีขึ้นโดยไม่เพิ่มฟีเจอร์ หรือแก้บั๊ก
🚀 perf: — คำนี้มาจาก Performance หรือ การปรับปรุงประสิทธิภาพการทำงานนั่นเอง
🚨 test: — การเปลี่ยนแปลงในส่วนของ Test ที่เราสร้างไว้ เช่น เพิ่ม Test-case
👷 ci: — ปรับปรุง เปลี่ยนแปลง CI Config ของไฟล์ หรือ สคริปต์ เช่น Jenkins, GitLab CI
⏪ revert: — ย้อนกลับ commit