Backend (FastAPI): - App factory with async SQLAlchemy 2.0 + PostgreSQL - Alembic migration for users and sessions tables - JWT auth (access + refresh tokens, bcrypt passwords) - Auth endpoints: register, login, refresh, logout, me - Admin seed script, role-based access deps Frontend (React + TypeScript): - Vite + Tailwind CSS + shadcn/ui theme (health-oriented palette) - i18n with English and Russian translations - Zustand auth/UI stores with localStorage persistence - Axios client with automatic token refresh on 401 - Login/register pages, protected routing - App layout: collapsible sidebar, header with theme/language toggles - Dashboard with placeholder stats Infrastructure: - Docker Compose (postgres, backend, frontend, nginx) - Nginx reverse proxy with WebSocket support - Dev override with hot reload Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
39 lines
968 B
JSON
39 lines
968 B
JSON
{
|
|
"name": "ai-assistant-frontend",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-router-dom": "^6.28.0",
|
|
"axios": "^1.7.0",
|
|
"zustand": "^5.0.0",
|
|
"@tanstack/react-query": "^5.60.0",
|
|
"i18next": "^24.0.0",
|
|
"react-i18next": "^15.1.0",
|
|
"i18next-http-backend": "^3.0.0",
|
|
"i18next-browser-languagedetector": "^8.0.0",
|
|
"lucide-react": "^0.460.0",
|
|
"clsx": "^2.1.0",
|
|
"tailwind-merge": "^2.6.0",
|
|
"class-variance-authority": "^0.7.1",
|
|
"sonner": "^1.7.0"
|
|
},
|
|
"devDependencies": {
|
|
"vite": "^6.0.0",
|
|
"@vitejs/plugin-react": "^4.3.0",
|
|
"typescript": "^5.6.0",
|
|
"@types/react": "^18.3.0",
|
|
"@types/react-dom": "^18.3.0",
|
|
"tailwindcss": "^3.4.0",
|
|
"postcss": "^8.4.0",
|
|
"autoprefixer": "^10.4.0"
|
|
}
|
|
}
|