AI-Powered Infrastructure Migration Platform for krelixir.ai
Krelixir helps organizations migrate from on-premises infrastructure to cloud environments using AI-driven analysis, cost optimization, and automated migration workflows.
krelixir-mlai/
├── frontend/ # React 18 + Vite + Tailwind CSS
│ ├── src/
│ │ ├── pages/ # Landing, Login, Dashboard, Inventory, Recommendations, AI Chat, Settings
│ │ ├── components/ # Reusable UI components (layout, dashboard, inventory, ai, ui)
│ │ ├── store/ # Zustand global state (auth, app)
│ │ ├── services/ # Axios API client
│ │ └── utils/ # Helpers, constants, sample data
├── backend/ # Node.js + Express REST API
│ ├── src/
│ │ ├── routes/ # auth, dashboard, inventory, recommendations, ai
│ │ ├── middleware/ # JWT auth, error handling
│ │ ├── models/ # SQLite database (better-sqlite3)
│ │ └── data/ # Sample seed data
└── docs/ # API docs, deployment guide
- Node.js 18+
- npm
# Frontend
cd frontend && npm install
# Backend
cd ../backend && npm installcd backend
cp .env.example .env
# Edit .env — at minimum set JWT_SECRET# Terminal 1 - Backend (auto-seeds demo data)
cd backend && npm run dev
# Terminal 2 - Frontend
cd frontend && npm run dev- Frontend: http://localhost:3000
- Backend API: http://localhost:5000/api
| Password | |
|---|---|
demo@krelixir.ai |
demo1234 |
| Layer | Technology |
|---|---|
| Frontend | React 18, Vite 5, Tailwind CSS 3 |
| Routing | React Router v6 |
| State | Zustand |
| Charts | Recharts |
| Forms | React Hook Form |
| File Upload | React Dropzone |
| Backend | Node.js 20, Express 4 |
| Database | SQLite via better-sqlite3 |
| Auth | JWT (jsonwebtoken) |
| AI | OpenAI GPT-4o (with mock fallback) |
| File Parsing | Multer + csv-parse |
- Dual Mode: Client Dashboard + AI Agent Mode
- Inventory Management: Servers, Databases, Applications, Network
- Data Ingestion: CSV/Excel upload, manual entry
- AI Recommendations: Migration strategy per asset (Rehost/Replatform/Refactor/Retire)
- Cost Analysis: Current vs projected with 64% savings potential
- AI Chat: Natural language interface powered by GPT-4o
- Risk Assessment: Automated risk scoring per asset
- Dark/Light Mode: Full theme support
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/auth/register |
Register user |
| POST | /api/auth/login |
Login |
| GET | /api/auth/me |
Current user |
| GET | /api/dashboard/stats |
Dashboard statistics |
| GET | /api/inventory |
All inventory |
| POST | /api/inventory |
Add asset |
| POST | /api/inventory/upload |
Upload CSV |
| GET | /api/recommendations |
AI recommendations |
| POST | /api/recommendations/analyze |
Trigger re-analysis |
| POST | /api/ai/chat |
AI chat message |
| GET | /api/ai/history |
Chat history |
See docs/API.md for full documentation.
# 1. Build frontend
cd frontend && npm run build
# 2. Upload frontend/dist/ to Hostinger public_html/
# 3. Deploy backend on VPS with PM2
cd backend && pm2 start server.js --name krelixir-api
See docs/DEPLOYMENT.md for the complete guide including Nginx config, SSL, and environment setup.
MIT © 2025 Krelixir