A comprehensive web-based Human Resource Management (HRM) system designed to streamline worker management, permit requests, and work verification processes.
-
User Authentication
- Secure login and registration system
- Role-based access control
-
Worker Management
- Add, edit, and remove workers
- Track employee information (name, department, role)
- Manage reporting relationships
- View organizational hierarchy
-
Permit Management
- Submit leave requests (vacation, sick leave, personal)
- Track permit status (pending, approved, rejected)
- Manage approval workflow
- View permit history
-
Proof of Employment
- Generate employment verification documents
- Print-ready PDF format
- Official company letterhead template
-
Dashboard
- Overview of key metrics
- Total employee count
- Department statistics
- Pending permits count
-
Frontend:
- React with TypeScript
- TanStack Query for data fetching
- Shadcn UI components
- Tailwind CSS for styling
- Wouter for routing
-
Backend:
- Express.js server
- PostgreSQL database
- Drizzle ORM
- Passport.js for authentication
- Clone the repository:
git clone https://github.com/AlexisTAE/HrResourceCenter.git
cd HrResourceCenter
- Install dependencies:
npm install
- Set up environment variables:
Create a
.env
file with the following variables:
DATABASE_URL=your_postgresql_connection_string
SESSION_SECRET=your_session_secret
- Set up the database:
npm run db:push
- Start the development server:
npm run dev
The application will be available at http://localhost:5000
- Access the login page at
/auth
- Register a new account or log in with existing credentials
- Upon successful authentication, you'll be redirected to the dashboard
- Navigate to the Workers section
- Use the "Add Worker" button to create new employee records
- Edit worker details using the pencil icon
- View organizational structure in the Organization Chart section
- Go to the Permits section
- Click "New Request" to submit a leave request
- Fill in the required details:
- Select employee
- Choose permit type
- Specify dates
- Provide reason
- Track permit status and manage approvals
- Access the Proofs section
- Select an employee from the list
- Click "Generate Proof" to create an employment verification document
- Use the "Generate PDF" button to download or print
The system uses the following main tables:
users
: Authentication and user managementworkers
: Employee information and relationshipspermits
: Leave request tracking and workflow
- The project uses Vite for development
- Hot module replacement is enabled
- TypeScript for type safety
- ESLint and Prettier for code formatting
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License.