IceHrm
Search…
Setup Development Environment
Here you will learn how to setup your development environment for icehrm

Clone the IceHrm repo

1
$ git clone https://github.com/gamonoid/icehrm.git
Copied!

Check prerequisites

You will be more productive when using vagrant for your development environment

Install Virtual Box

Please download and install virtual box for your platform from here: https://www.virtualbox.org/wiki/Downloads

Install Vagrant

Instructions for installing vagrant https://www.vagrantup.com/docs/installation
Then we need to install vagrant host updater plugin
1
$ vagrant plugin install vagrant-hostsupdater
Copied!

Build Frontend Assets

Icehrm has two pakage.json files. Once under the root and the other one under /web directory. NPM should run on both locations
1
$ npm install
2
$ cd web
3
$ npm install
4
$ cd ..
5
$ npm install -g gulp-cli
6
$ gulp
Copied!

Add Development Configuration

Create file icehrm/app/config.php
1
<?php
2
$protocol = $_SERVER["REQUEST_SCHEME"] ? : 'http';
3
define('CLIENT_NAME', 'icehrm');
4
5
// ------- Vagrant ---------
6
ini_set('error_log', '/vagrant/app/data/icehrm.log');
7
define('APP_BASE_PATH', '/vagrant/core/');
8
define('CLIENT_BASE_PATH', '/vagrant/app/');
9
define('BASE_URL',$protocol.'://icehrm.os/web/');
10
define('CLIENT_BASE_URL',$protocol.'://icehrm.os/app/');
11
12
define('APP_DB', 'icehrm');
13
define('APP_USERNAME', 'dev');
14
define('APP_PASSWORD', 'dev');
15
define('APP_HOST', 'localhost');
16
define('APP_CON_STR', 'mysqli://'.APP_USERNAME.':'.APP_PASSWORD.'@'.APP_HOST.'/'.APP_DB);
17
// ----------------------------
18
19
20
21
//file upload
22
define('FILE_TYPES', 'jpg,png,jpeg');
23
define('MAX_FILE_SIZE_KB', 10 * 1024);
Copied!

Start Vagrant

The pre-built IceHrm vagrant box contains php 7.3 / nginx and MySQL 5.7 installed. Nginx configurations are loaded from icehrm/deployment/vagrant
1
$ vagrant up
Copied!
Then navigate to http://icehrm.os and login with credentails, admin / admin
Last modified 1yr ago