IceHrm
Here you will learn how to set up your development environment for Icehrm.
$ git clone https://github.com/gamonoid/icehrm.git
You will be more productive when using vagrant for your development environment.
Please download and install virtual box for your platform from here: https://www.virtualbox.org/wiki/Downloads
Instructions for installing vagrant https://www.vagrantup.com/docs/installation
Then we need to install Vagrant host updater plugin.
$ vagrant plugin install vagrant-hostsupdater
Icehrm has two pakage.json files. Once under the root and the other one under /web directory. NPM should run on both locations
$ npm install $ cd web $ npm install $ cd .. $ npm install -g gulp-cli $ gulp
Create file icehrm/app/config.php
<?php $protocol = $_SERVER["REQUEST_SCHEME"] ? : 'http'; define('CLIENT_NAME', 'icehrm'); // ------- Vagrant --------- ini_set('error_log', '/vagrant/app/data/icehrm.log'); define('APP_BASE_PATH', '/vagrant/core/'); define('CLIENT_BASE_PATH', '/vagrant/app/'); define('BASE_URL',$protocol.'://icehrm.os/web/'); define('CLIENT_BASE_URL',$protocol.'://icehrm.os/app/'); define('APP_DB', 'icehrm'); define('APP_USERNAME', 'dev'); define('APP_PASSWORD', 'dev'); define('APP_HOST', 'localhost'); define('APP_CON_STR', 'mysqli://'.APP_USERNAME.':'.APP_PASSWORD.'@'.APP_HOST.'/'.APP_DB); // ---------------------------- //file upload define('FILE_TYPES', 'jpg,png,jpeg'); define('MAX_FILE_SIZE_KB', 10 * 1024);
The pre-built IceHrm vagrant box contains php 7.3 / nginx and MySQL 5.7 installed. Nginx configurations are loaded from icehrm/deployment/vagrant.
$ vagrant up
Then navigate to http://icehrm.os and login with credentials, admin / admin.
Powered by BetterDocs