Skip to content

chinhtran-dev/interview

Repository files navigation

PostgreSQL + Migration

Chạy PostgreSQL

docker compose up -d

Migration trong migrations/init/01_schema.sql chạy tự động lần đầu khi volume còn trống (lần đầu docker compose up).

Kết nối

Thông tin Giá trị
Host localhost
Port 5432
Database interview_db
User postgres
Password postgres

Connection string:
postgresql://postgres:postgres@localhost:5432/interview_db

Chạy lại migration từ đầu

Nếu cần xóa data và chạy lại init script:

docker compose down docker volume rm interview_postgres_data docker compose up -d

Cấu trúc schema

  • departments – phòng ban (id, name, code)
  • employees – nhân viên (liên kết department, có trưởng phòng, ngày vào làm, status)
  • attendance – chấm công (employee_id, date, check_in, check_out, source)

Playwright (E2E)

npm install npx playwright install npm test
  • Cấu hình: playwright.config.js
  • Test: thư mục tests/ (ví dụ: trang chủ, tìm kiếm izola.vn)
  • Chạy có giao diện: npm run test:headed
  • Debug: npm run test:debug

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors