Skip to content

Yodhagk/krelixir-mlai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Krelixir Migration Platform

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.


Architecture

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

Quick Start

Prerequisites

  • Node.js 18+
  • npm

1. Install Dependencies

# Frontend
cd frontend && npm install

# Backend
cd ../backend && npm install

2. Configure Environment

cd backend
cp .env.example .env
# Edit .env — at minimum set JWT_SECRET

3. Start Development

# Terminal 1 - Backend (auto-seeds demo data)
cd backend && npm run dev

# Terminal 2 - Frontend
cd frontend && npm run dev

4. Access the App

Demo Credentials

Email Password
demo@krelixir.ai demo1234

Tech Stack

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

Features

  • 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

API Endpoints

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.


Deployment (Hostinger / krelixir.ai)

# 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
image image image image image image image

See docs/DEPLOYMENT.md for the complete guide including Nginx config, SSL, and environment setup.


License

MIT © 2025 Krelixir

About

We trying to create the Py tkinter frontend and mysql db in backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors