{"id":49311995,"url":"https://github.com/dibbayajyotiroy/rust-fullstack-app","last_synced_at":"2026-04-26T13:05:43.897Z","repository":{"id":330016736,"uuid":"1120618800","full_name":"DibbayajyotiRoy/Rust-FullStack-App","owner":"DibbayajyotiRoy","description":"Full Stack Application for EMS made with React and Rust backend as serverside, with Dockerization.","archived":false,"fork":false,"pushed_at":"2026-01-17T20:19:55.000Z","size":711,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-18T05:00:06.805Z","etag":null,"topics":["docker","employee-management","employee-management-system","ems","reactjs","rust"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DibbayajyotiRoy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-21T15:44:44.000Z","updated_at":"2026-01-17T20:19:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/DibbayajyotiRoy/Rust-FullStack-App","commit_stats":null,"previous_names":["dibbayajyotiroy/rust-fullstack-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DibbayajyotiRoy/Rust-FullStack-App","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DibbayajyotiRoy%2FRust-FullStack-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DibbayajyotiRoy%2FRust-FullStack-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DibbayajyotiRoy%2FRust-FullStack-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DibbayajyotiRoy%2FRust-FullStack-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DibbayajyotiRoy","download_url":"https://codeload.github.com/DibbayajyotiRoy/Rust-FullStack-App/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DibbayajyotiRoy%2FRust-FullStack-App/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32297961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","employee-management","employee-management-system","ems","reactjs","rust"],"created_at":"2026-04-26T13:05:43.144Z","updated_at":"2026-04-26T13:05:43.891Z","avatar_url":"https://github.com/DibbayajyotiRoy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧑‍💼 Employee Management System\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003eA production-ready full-stack Employee Management System\u003c/b\u003e\u003cbr/\u003e\n  Built with a \u003cb\u003eRust server-side backend\u003c/b\u003e and a modern React frontend.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Backend-Rust-orange?style=flat-square\" alt=\"Backend: Rust\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Framework-Axum-blue?style=flat-square\" alt=\"Framework: Axum\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Database-PostgreSQL-336791?style=flat-square\" alt=\"Database: PostgreSQL\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Frontend-React-61DAFB?style=flat-square\" alt=\"Frontend: React\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Runtime-Docker-black?style=flat-square\" alt=\"Runtime: Docker\" /\u003e\n\u003c/p\u003e\n\n---\n\n## 📌 Overview\n\nThis project is a **full-stack Employee Management System (EMS)** designed with **scalability, maintainability, and production-readiness** in mind.\n\n- **Backend**: Rust (Axum) – server-side rendered API \u0026 static frontend serving\n- **Frontend**: React + Tailwind + shadcn/ui\n- **Database**: PostgreSQL\n- **Deployment**: Docker \u0026 Docker Compose\n\nThe backend serves both:\n- REST APIs under `/api/*`\n- The compiled frontend SPA\n\n👉 **Configurable CORS support for modular development.**\n\n---\n\n## 🏗 Architecture\n\n```mermaid\ngraph TD\n    A[\"Frontend: React + Tailwind + shadcn/ui\"] --\u003e|API Requests| B(Rust Backend: Axum • SQLx • Tokio);\n    B --\u003e C[PostgreSQL DB];\n    subgraph Rust Backend\n        B1[\"/api/* → REST endpoints\"]\n        B2[\"/* → React SPA\"]\n    end\n    B -.-\u003e B1\n    B -.-\u003e B2\n```\n\n### ⚙️ Backend (Rust – Server Side)\n\n**Tech Stack**\n- **Rust**\n- **Axum** – HTTP server \u0026 routing\n- **SQLx** – async PostgreSQL driver\n- **Tokio** – async runtime\n- **UUID** – primary keys\n- **Docker** – containerized runtime\n\n**Key Backend Features**\n- Modular architecture (models, services, handlers, routes)\n- Runtime-safe SQL (Docker-compatible, no compile-time DB dependency)\n- Shared application state via `AppState`\n- SPA fallback routing (client-side routing works on refresh)\n- Clean REST API design\n\n**Example API Routes**\n```rust\nGET    /api/users\nPOST   /api/users\nGET    /api/users/{id}\nPUT    /api/users/{id}\nDELETE /api/users/{id}\n```\n\n### 🎨 Frontend\n\n**Tech Stack**\n- **React**\n- **TypeScript**\n- **Tailwind CSS**\n- **shadcn/ui**\n- **Sonner** (toasts \u0026 notifications)\n\n**UI Architecture**\n```yaml\ncomponents/\n  ├─ atoms/\n  ├─ molecules/\n  ├─ organisms/\n  └─ ui/ (design system)\n\npages/\n  └─ UserPage.tsx\n\nstate/\n  └─ user.store.ts (state + side effects)\n\nservices/\n  └─ user.service.ts (API calls only)\n\napi/\n  ├─ endpoints.ts\n  └─ http.ts\n```\n\n**UI Features**\n- Sidebar-based admin layout\n- Responsive (desktop / tablet / mobile)\n- Search \u0026 filtering\n- Add / Edit / Delete employees\n- Accessible components\n- Clean spacing \u0026 layout discipline\n\n---\n\n## 🐳 Running with Docker\n\n**Prerequisites**\n- Docker\n- Docker Compose\n\n**Start the full stack**\n```bash\ndocker compose up --build\n```\n\n**Services started:**\n1. Rust API + frontend server\n2. PostgreSQL database\n\n**Backend runs on:**\nhttp://localhost:8000\n\n---\n\n## 🗄 Database\n\n- **PostgreSQL**\n- Managed via SQL migrations\n- UUID primary keys\n- Timestamped records\n\n**Example table:**\n```sql\nCREATE TABLE users (\n  id UUID PRIMARY KEY,\n  username TEXT,\n  email TEXT,\n  password_hash TEXT,\n  created_at TIMESTAMP,\n  updated_at TIMESTAMP\n);\n```\n\n---\n\n## 🔒 Design Principles\n\n- **Server-side first** (no frontend proxy hacks)\n- **Same-origin architecture**\n- **Strict separation of concerns**\n  - No business logic in UI\n  - No SQL in handlers\n  - No API calls in components\n\nThis codebase is designed to scale beyond CRUD into:\n- Roles \u0026 permissions\n- Audit logs\n- Organization hierarchies\n- HR workflows\n\n---\n\n## 🚀 Future Enhancements\n\n- [ ] Authentication \u0026 RBAC\n- [ ] Pagination \u0026 filtering at DB level\n- [ ] Activity audit logs\n- [ ] WebSockets for live updates\n- [ ] Admin role management\n- [ ] CI/CD pipeline\n\n---\n\n## 📄 License\n\n**MIT License**\nUse freely for learning, internal tools, or production systems.\n\n---\n\n## ✨ Author\n\nBuilt with an emphasis on correct architecture, not shortcuts.\n**Rust on the server. Clean UI on the client. No compromises.**\n\n\u003cp align=\"center\"\u003e\n  \u003csub\u003e“Good systems are boring. Boring means predictable. Predictable means scalable.”\u003c/sub\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdibbayajyotiroy%2Frust-fullstack-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdibbayajyotiroy%2Frust-fullstack-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdibbayajyotiroy%2Frust-fullstack-app/lists"}