- Install dependencies:
npm install- Run development server:
npm run devApp will be available at: http://localhost:5173
- Build for production:
npm run build
- Preview production build:
npm run preview- Create Docker network:
docker network create app-network- Start development server with hot-reload:
docker-compose -f docker-compose.dev.yml upApp will be available at: http://localhost:5173
- Build and run production:
docker-compose up --buildApp will be available at: http://localhost:8080
📚 Full Docker documentation: docs/DOCKER.md
# 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 -- LogoutCoverage: 14 tests - authentication hooks, modal interactions, logout flow
Code Quality
- Lint code:
npm run lint- Fix lint errors:
npm run lint:fix- Format code with Prettier:
npm run format- Check formatting:
npm run format:checkOn commit, staged files will be checked with ESLint and formatted with Prettier automatically.