Welcome to the Employee Management Software API! This project is designed to help you manage employee records, attendance, and more. Below, you'll find all the information you need to set up and run the project.
- Requirements
- Installation
- Environment Configuration
- Running the Application
- Features
- Testing
- License
- PHP 8.1 or higher
- Composer
- Docker & Docker Compose (for Laravel Sail)
-
Clone the repository:
git clone https://github.com/aimedidierm/employee-management-software-api.git cd employee-management-software-api
-
Install dependencies:
./vendor/bin/sail composer install
-
Copy the environment file:
cp .env.example .env
-
Generate an application key:
./vendor/bin/sail artisan key:generate
-
Open the
.env
file and configure your database settings, email settings, and other environment variables as needed. -
Set up Mailpit for email testing by adding the following to your
.env
:MAIL_MAILER=smtp MAIL_HOST=mailpit MAIL_PORT=1025 MAIL_USERNAME=null MAIL_PASSWORD=null
-
Frontend URL:
FRONTEND_APP_URL=http://your-vuejs-deployment-url
-
Start the application using Laravel Sail:
./vendor/bin/sail up
-
Access the API at
http://localhost
or the specified port in yourdocker-compose.yml
.
- Authentication System: Users can register, log in, log out, and reset passwords using Laravel Sanctum. 🔒
- Employee CRUD: Create, read, update, and delete employee records through the API with a VueJS frontend. 👥
- Attendance Management: Record employee attendance with arrival and departure times. ⏰
- Email Notifications: Employees receive email notifications when their attendance is recorded. 📧
- Attendance Reports: Generate PDF and Excel reports of daily attendance data. 📊
- Run the tests using:
./vendor/bin/sail artisan test
This project is licensed under the MIT License. See the LICENSE file for details.
Thank you for checking out this project! If you have any questions or need assistance, feel free to reach out.