Dayflow is a modern, full-stack Human Resource Management System (HRMS) designed to streamline employee management, attendance tracking, and leave management. It features a premium "Glassmorphism" UI and a robust Node.js backend.
- Employee Management:
- Add, view, and list employees.
- Detailed employee profiles.
- Role-based access (Admin & Employee).
- Attendance Tracking:
- Daily Check-in / Check-out with live timer.
- Automatic status calculation (Present, Half-day, Absent).
- Monthly attendance history view.
- Time Off (Leave) Management:
- Request various types of leave (PTO, Sick, Casual, Unpaid).
- Track leave balances.
- Admin approval workflow.
- Authentic UI/UX:
- Google-inspired "Glassmorphism" design.
- Rich gradients, blur effects, and smooth animations.
- Responsive layout.
- React (Vite): Fast and modern UI library.
- React Router: Client-side routing.
- Lucide React: Modern, consistent icons.
- CSS Variables: For theming and premium styling.
- Node.js & Express: Scalable server-side runtime.
- MongoDB & Mongoose: Flexible NoSQL database schema.
- JWT (JSON Web Tokens): Secure stateless authentication.
- Bcrypt.js: Password hashing.
- Node.js (v14+ recommended)
- MongoDB (Local or Atlas URI)
git clone <repository-url>
cd DayflowNavigate to the backend directory and install dependencies:
cd backend
npm installCreate a .env file in c:\Dayflow\backend\.env with the following variables:
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret_key
NODE_ENV=developmentStart the backend server:
# Development mode (restarts on changes)
npm run dev
# Or standard start
npm startServer runs on http://localhost:5000
Open a new terminal, navigate to the project root (where vite.config.js is located):
cd c:\Dayflow
npm installStart the Vite development server:
npm run devFrontend runs on http://localhost:5173 (or similar).
- Login: Use the default Admin credentials (seeded via
backend/seed.jsif run):- Email:
admin@dayflow.com - Password:
password123
- Email:
- Dashboard/TopNav: Navigate between Employees, Attendance, and Time Off.
- Employees: Click "Add New Employee" to register staff.
- Attendance: Click "Check In" to start your day.
- Time Off: View cards for leave balance and apply for leave.
- Fork the repository.
- Create a feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
This project is licensed under the ISC License.