Skip to content

Latest commit

 

History

209 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages