Coder Social home page Coder Social logo

fredlee1989 / icehrm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gamonoid/icehrm

0.0 0.0 0.0 94.34 MB

Manage your employees easily with a robust and efficient Human Resource Management System

Home Page: http://icehrm.com

License: Other

Shell 0.02% JavaScript 54.83% PHP 29.66% CSS 13.65% Makefile 0.03% HTML 1.64% Smarty 0.11% RAML 0.03% Dockerfile 0.03%

icehrm's Introduction

IceHrm

Build Status

IceHrm is an HRM software which enable companies to manage employee details and HR workflows.

    

Installation

Using Docker

cd icehrm
npm run setup
npm run docker:build
npm run docker:start

Installation (without docker)

Upgrade from Previous Versions

Refer: https://icehrm.com/explore/docs/upgrade-icehrmpro/

Setup Development Environment

git clone https://github.com/gamonoid/icehrm.git
cd icehrm
docker-compose up -d

Extend IceHrm with custom Extensions

  • Inorder to create an admin extension run
php ice create:extension sample admin

Building frontend assets

  • When ever you have done a change to JavaScript or CSS files in icehrm/web you need to rebuild the frontend
  • First make sure you have all the dependencies (just doing this once is enough)
cd icehrm/web
npm install
cd ..
npm install
  • Build assets during development
gulp clean
gulp
  • Build assets for production
gulp clean
gulp --eprod
  • Build extensions
gulp ejs --xextension_name/admin

Debugging code with psysh

You can run psysh inside the icehrm web docker container to manually debug the code.

  • Start Psysh console
docker compose up -d
docker exec -it icehrm-icehrm-1 /bin/sh
./psysh -c ./.config/psysh/config.php

This will open a psysh console. You can instantiate any IceHrm class and debug it. Here is an example of creating an employee object and loading an employee from the database.

$emp = new \Employees\Common\Model\Employee();
$emp->Load('id = ?',[1]);
var_dump($emp);

Running tests (Docker)

  • Run e2e (cypress) tests
docker-compose -f docker-compose-testing.yaml up --exit-code-from cypress

or

docker-compose -f docker-compose-testing.yaml up --exit-code-from cypress --build --force-recreate
  • When you are ready to push your changes to production, make sure to build the production images
docker-compose -f docker-compose-prod.yaml up -d --build

Useful Links

icehrm's People

Contributors

thilinah avatar ddave001 avatar gamonoid avatar pattafeufeu avatar icehrm avatar nightwatch75 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.