An AI-powered conversational assistant built with the MERN stack, featuring secure authentication, persistent conversation history, and workflow-driven responses using n8n. The workflow architecture allows the underlying AI provider to be swapped or extended without changing the application code.
π Frontend
βοΈ Backend API
Aile Mark 1 is a production-oriented AI conversation platform designed to simulate the architecture of modern AI assistants.
Instead of focusing only on AI responses, the project emphasizes secure authentication, conversation persistence, scalable backend architecture, and workflow automation through n8n.
It demonstrates how modern AI applications can be built using industry-standard technologies including React, Express.js, MongoDB Atlas, JWT authentication, and cloud deployment platforms.
- π JWT Authentication & Protected Routes
- π€ AI-powered Conversations
- π¬ Persistent Conversation History
- π User-specific Chat Management
- π¨ Responsive Modern Interface
- π Dark & High Contrast Themes
- βοΈ Cloud Deployment
- β‘ MERN Architecture
- π n8n Workflow Integration
Authenticate securely using JWT-based authentication.
Create an account with client-side and server-side validation.
Modern AI chat interface with persistent conversation history.
- AI-powered responses using n8n workflows
- Persistent chat history
- Markdown message rendering
- Session-based conversations
- Copy message functionality
- Like / Dislike interactions
- User Registration
- Secure Login
- Password Hashing (bcrypt)
- JWT Authentication
- Protected Routes
- Authentication Middleware
- User-specific conversations
- Automatic conversation titles
- Persistent MongoDB storage
- Conversation history
- Delete conversations
- Session restoration
- Responsive Layout
- Sidebar Navigation
- Message timestamps
- Dark Theme
- High Contrast Theme
- Persistent Login Session
- Netlify Frontend
- Render Backend
- MongoDB Atlas Database
- Railway n8n Workflow
- React.js
- Vite
- JavaScript
- React Router
- CSS
- Node.js
- Express.js
- MongoDB
- Mongoose
- JWT
- bcrypt
- n8n
- Netlify
- Render
- Railway
- MongoDB Atlas
ββββββββββββββββββββββ
β Browser β
βββββββββββ¬βββββββββββ
β
βΌ
React + Vite Frontend
(Netlify)
β
REST API (Axios)
β
βΌ
Express.js Backend
(Render)
βββββββββ΄βββββββββ
βΌ βΌ
MongoDB Atlas n8n Workflow
AILE-MARK-1/
βββ backend/
β βββ controllers/
β βββ middleware/
β βββ models/
β βββ routes/
β βββ app.js
β βββ package.json
β
βββ src/
β βββ assets/
β βββ components/
β βββ pages/
β βββ services/
β βββ utils/
β βββ App.jsx
β βββ main.jsx
β
βββ public/
βββ package.json
βββ README.md
POST /api/auth/register
POST /api/auth/login
GET /api/conversations
GET /api/conversation/:sessionId
POST /api/chat
DELETE /api/conversations/:sessionId
PORT=8000
MONGODB_URI=<your_mongodb_connection_string>
JWT_SECRET=<your_jwt_secret>
N8N_WEBHOOK_URL=<your_n8n_webhook_url>VITE_API_URL=<your_backend_api_url>git clone https://github.com/iamHaneef/aile-mark-1.gitnpm installcd backend
npm installFrontend
npm run devBackend
cd backend
npm run dev- Maintaining secure conversation ownership
- Persisting chat sessions across refreshes
- Managing JWT expiration
- Integrating asynchronous AI workflows
- Deploying frontend, backend, database, and workflow services together
Through this project, I strengthened my understanding of:
- MERN Stack Development
- REST API Design
- JWT Authentication
- MongoDB Schema Design
- Express Middleware
- Cloud Deployment
- AI Workflow Automation
- Full-Stack Application Architecture
This project is intended for learning, portfolio, and educational purposes.
Haneef
β Star this repository if you found it useful!


