- Node.js
- pnpm
- Turborepo
- NextJS
- Tailwind CSS
- Motion
- NestJS (base on Express.js)
- TypeScript
- Supabase (postgreSQL)
- Prisma
- JWT
- Docker
- Docker compose
- Better Auth
- RustFS (S3 Compatible Object Storage)
- GitHub Container Registry (GHCR)
- Clone this repository :
git clone https://github.com/cpe-kmutt-student/modcom-10-whoami.git - Install Dependencies :
pnpm install(pnpm recommend) - Config
.envby rename or copy from.env.example - generate prisma client :
pnpm run generate
- Run Generate :
pnpm run generate - Run Migration :
pnpm run db:migratedev - Reset and Re-run Migration :
cd ./apps/api && pnpm exec prisma migrate reset
- feat – New feature
- fix – Bug fix
- perf – Performance improvement
- refactor – Code change without behavior change
- style – Code style only (no logic change)
- test – Add or update tests
- docs – Documentation only
- build – Build system or dependencies
- chore – Maintenance tasks
- ci – CI/CD configuration
- revert – Revert previous commit
- Run Dev Server :
pnpm run dev
- Run Prod Project on docker (Build from source) :
docker compose -f docker-compose.dev.yml up --build -d - Run Prod Project on docker (Pull from GHCR (Recommended)) :
docker compose up -d
No Design
- Web Server :
http://localhost:3000 - API Server :
http://localhost:3010 - Mentor Web Server :
http://localhost:3005 - Better-Auth :
http://localhost:3010/api/auth - Docs (Better Auth) :
http://localhost:3010/api/auth/reference
- Region :
us-east-1dunt no y - Endpoint :
https://s3.aboutnon.in.th - Console :
https://s3.aboutnon.in.th/rustfs/console
ติดตั้ง dependency เฉพาะ workspace ที่ต้องการ โดยใช้คำสั่งดังนี้
pnpm install [dep] --filter [workspace]
dep: ชื่อของ dependency ที่ต้องการติดตั้ง
workspace: ชื่อของ workspace ที่ต้องการติดตั้ง dependency เช่น @repo/my-workspace
ติดตั้ง dependency ที่ root
pnpm install [dep] -w
dep: ชื่อของ dependency ที่ต้องการติดตั้ง
ในไฟล์ `package.json` ของแต่ละ workspace จะมีการกำหนดชื่อ package ไว้ที่ `name` ซึ่งสามารถเรียกใช้งานได้ดังนี้
import { functionName } from '@repo/my-workspace'
การ import เข้า dependencies ใน package.json ของ workspace อื่นๆ สามารถทำได้ดังนี้
pnpm add @repo/my-workspace --filter [workspace]
workspace: ชื่อของ workspace ที่ต้องการติดตั้ง dependency เช่น @repo/my-workspace
Made with 💚 by CPE39

