Skip to content

Latest commit

聽

History

History
105 lines (67 loc) 路 1.46 KB

README.md

File metadata and controls

105 lines (67 loc) 路 1.46 KB

Frontend Application

馃摝 Installation & Setup

Local Development (npm)

  1. Install dependencies:
npm install
  1. Run development server:
npm run dev

App will be available at: http://localhost:5173

  1. Build for production:
npm run build
  1. Preview production build:
npm run preview

馃惓 Docker Development (Recommended)

  1. Create Docker network:
docker network create app-network
  1. Start development server with hot-reload:
docker-compose -f docker-compose.dev.yml up

App will be available at: http://localhost:5173

  1. Build and run production:
docker-compose up --build

App will be available at: http://localhost:8080

馃摎 Full Docker documentation: docs/DOCKER.md

馃И Testing

Logout Feature Tests

# Authentication state tests (2 tests)
npm test -- useAuth.test.ts

# Modal component tests (7 tests)
npm test -- LogoutModal.test.tsx

# Button component tests (5 tests)
npm test -- LogoutButton.test.tsx

# Run all logout tests (12 tests)
npm test -- Logout

Coverage: 14 tests - authentication hooks, modal interactions, logout flow

Code Quality

  1. Lint code:
npm run lint
  1. Fix lint errors:
npm run lint:fix
  1. Format code with Prettier:
npm run format
  1. Check formatting:
npm run format:check

On commit, staged files will be checked with ESLint and formatted with Prettier automatically.