A simple web application to manage leaves and contracts.
To run this project, you need php 8.1 or latest and MySQL >= 5.7 or MariaDB >= 10.4.
The project use Composer to manage dependencies.
- Clone the repository from GitHub and install dependencies
$ git clone https://github.com/SilverD3/leave-manager.git
$ cd leave-manager && composer install- Install the database
Database schema is located in config/schema/db-script.sql. Create a database in DBMS (Database Management System) and use it to import this schema.
Configurations are available in config directory. Edit config/app.php to configure datasource, emails and sessions.
From the command line, run following command in the root directory
php -S localhost:8090Then navigate to localhost:8090 in your browser.
- Clone the repository from Github:
git clone https://github.com/SilverD3/leave-manager.git- Move into the root folder:
cd leave-manager && composer install- Create database and import schema:
mysql > create database leave_manager;
mysql > source config/schema/leave_manager.sql;- Edit datasource config in file
config/app.php:
'DataSource' => [
'host' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'leave_manager',
],- Set the base url in file
config/paths.php:
if (!defined('BASE_URL')) {
define('BASE_URL', 'http://localhost:8090/');
}- Start the server:
php -S localhost:8090- Open your browser and type
localhost:8090in the url bar.