https://github.com/0xadafang/smart_hub
All-in-one HR desktop app built with Rust, React & Tauri. Features an interactive dashboard, leave requests, HR indicators, sales tracking, training modules and a local AI assistant. Offline-first.
https://github.com/0xadafang/smart_hub
ai crud desktop from-scratch offline-capable postgresql react rust tailwindcss tauri tauri-app tauri-apps tauri-rust typescript ui
Last synced: about 2 months ago
JSON representation
All-in-one HR desktop app built with Rust, React & Tauri. Features an interactive dashboard, leave requests, HR indicators, sales tracking, training modules and a local AI assistant. Offline-first.
- Host: GitHub
- URL: https://github.com/0xadafang/smart_hub
- Owner: 0xAdafang
- License: mit
- Created: 2025-05-12T19:52:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-05T22:19:02.000Z (11 months ago)
- Last Synced: 2026-01-29T13:51:25.138Z (4 months ago)
- Topics: ai, crud, desktop, from-scratch, offline-capable, postgresql, react, rust, tailwindcss, tauri, tauri-app, tauri-apps, tauri-rust, typescript, ui
- Language: TypeScript
- Homepage:
- Size: 1.28 MB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π§ Smart Hub
**Smart Hub** is a modern, high-performance, and functional desktop application developed with **Tauri**, **TypeScript**, **Rust**, and **React**. It's designed to centralize HR management, sales, training, and customer support in an ergonomic and responsive environment.
> β οΈ *Please note: The application is in French to reflect its localized context.*
> β οΈ *This project contains only dummy data for demonstration purposes.
No real company information is included.*
---
## π¨ Visual Overview
### π Light Theme

### π Dark Theme

---
## π Key Features
### π Secure Authentication
- Login system with role management (admin / user).
- Automatic redirection to the appropriate dashboard after login.
### π§ Interactive Dashboard
- Personalized overview based on user role.
- Dynamic widgets: alerts, remaining vacation days, reminders, HR indicators to process.
### π HR Indicators
- Employee visualization and evaluation (1β10 rating scales).
- Role-based access restrictions.
- Dynamic filters for quick navigation.
### π΄ Vacation Management
- Request and approval system.
- Remaining days counter.
- Synchronized interactive calendar.
### π₯¦ Food Directory
- Quick access to a food product database.
- Detailed descriptions useful for customer calls.
### π Telesales
- Quick entry form with progress gauge.
- Detailed sales view per user.
- Statistics & unlockable achievements.
- Admin view: comparison, filters, PDF export.
### π Training
- Interactive training modules (Acomba, orders, routes, calls, etc.).
- Integrated validation quizzes.
- Progress tracking visible to admins.
### π€ Account Management
- User creation/modification (admin only).
- Dynamically assigned roles.
### π₯ Role-Based Interface
- Personalized user interface.
- Admins have access to HR management, training, sales, account creation, etc.
### π Events
- Add reminders to the integrated calendar.
- Clear visualization of scheduled events.
### β
Todo List
- Simple daily task management.
- Integrated into the dashboard.
### π¨ Alert Widget
- Dynamic notifications based on context (sales to make, customers to call back, etc.).
### π€ Local AI Assistant (offline)
- Embedded local chatbot (Rust - Concept: Regex, Intent, StaticWords, HashMap).
- Capable of answering business questions (remaining vacation days, product info, etc.).
- Intent intelligence with semantic recognition.
---
## π Offline Mode
The application includes an **offline-first** system:
- Actions (e.g., vacation requests) are stored locally if the connection fails.
- Automatic synchronization as soon as the connection is restored.
---
## π οΈ Tech Stack
| Frontend | Backend / Software |
|-------------------|---------------------|
| TypeScript | Rust (Tauri) |
| React | SQLx + PostgreSQL |
| Tailwind CSS | |
| Framer Motion | |
---
## π§ Learning Objectives
This project allowed me to:
- Deepen my knowledge of Rust in a concrete application context.
- Create a modern design with React + Tailwind.
- Experiment with offline-first architectures.
- Integrate a local AI with intent logic.
- Manage a complete frontend + backend project.
---
## πΈ Credits & Acknowledgments
- π‘ Interface inspired by the [`tauri-ui`](https://github.com/agmmnn) project by [@agmmnn](https://github.com/agmmnn)
- π¨ Color palette: **Marble** (`#F2F8DC`) & **Dark Blue** (`#0F172A`)
- πΌ Icons: [Lucide](https://lucide.dev/)
- π Charts: [Recharts](https://recharts.org/)
---
## πΌ Author
π¨βπ» **0xAdafang - TΓ©rence**
π« [adafang@proton.me]
π¨π¦ Project completed in Montreal/Quebec as part of an end-of-studies internship. The application will be deployed and used by the company that hired me for this internship.
---
## π¦ Installation (dev mode)
```bash
git clone https://github.com/your-username/smart-hub
cd hn-smart-hub
psql -U postgres -c "CREATE DATABASE hn_smart_bdd_demo;"
psql -U postgres -d hn_smart_bdd_demo -f sql/hn_smart_bdd_demo.sql
β οΈ This project contains only dummy data for demonstration purposes.
No real company information is included.
create or modify .env file
DATABASE_URL=postgres://postgres:motdepasse@localhost:5432/hn_smart_bdd_demo (example)
npm install
npm run tauri dev
```