Skip to content

keitaroinc/horilla

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Horilla 🦍

Horilla is a Free and Open Source HRMS Software.

Screenshot 2024-03-15 at 3 05 20 PM

Installation


Horilla can be installed on your system by following the below commands.

You'll have to install python, django and the database you wish to use for the project as a prerequisites.

Python Installation


Ubuntu

Ubuntu comes with Python pre-installed, but if you need to install a specific version or if Python is not installed, you can use the terminal to install it.

Open the terminal and type the following command:

  sudo apt-get install python3

This will install the latest version of Python 3.

To check if Python is installed correctly, type the following command:

python3 --version

This should output the version number of Python that you just installed.

Windows

To install Python on Windows, follow these steps:

  1. Download the latest version of Python from the official website: https://www.python.org/downloads/windows/ .
  2. Run the installer and select "Add Python to PATH" during the installation process.
  3. Choose the installation directory and complete the installation process.
  4. To check if Python is installed correctly, open the Command Prompt and type the following command:
python3 --version

This should output the version number of Python that you just installed.

macOS

macOS comes with Python pre-installed, but if you need to install a specific version or if Python is not installed, you can use Homebrew to install it.

Follow these steps:

  1. Install Homebrew by running the following command in the terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install Python by running the following command in the terminal:
brew install python

To check if Python is installed correctly, type the following command in the terminal:

python3 --version

This should output the version number of Python that you just installed.

Congratulations, you have successfully installed Python on Ubuntu, Windows, or macOS! You can now start using Python to build applications.

Installing Django


Before installing Django, you must have Python installed on your machine.

To install Django, follow the following steps:

  1. Create a virtual environment:

It is highly recommended to create a virtual environment before installing Django.

A virtual environment allows you to isolate your Python environment and avoid conflicts with other Python packages that may be installed on your machine.

To create a virtual environment, open the terminal and navigate to the directory where you want to create the environment. Then type the following command:

python -m venv myenv

This will create a new virtual environment named "myenv".

To activate the virtual environment, type the following command:

source myenv/bin/activate

This will activate the virtual environment and you should see the name of the environment in the terminal prompt.

Note that to activate your virtual environment on Widows, you will need to run the following code below (See this link to fully understand the differences between platforms):

 env/Scripts/activate.bat //In CMD
 env/Scripts/Activate.ps1 //In Powershel
  1. Install Django:

With the virtual environment activated, you can now install Django using pip, the Python package manager. Type the following command:

pip install Django

This will download and install the latest stable version of Django.

  1. Verify the installation:

To verify that Django is installed correctly, type the following command in the terminal:

python -m django --version

This should output the version number of Django that you just installed.

Congratulations, you have successfully installed Django on your machine! You can now start building web applications using Django.

Installing Horilla


For installing the Horilla, follow the following steps:

  1. Clone the project repository from GitHub:
git clone https://github.com/horilla-opensource/horilla.git
  1. Install the required dependencies using pip:

For installing the python dependencies required for the project, run the following command by going into the project directory.

pip install -r requirements.txt

If you face any issue with the installing the pycairo package in ubuntu or macos, please follow the following commands and try the requirements installation command after this command.

Ubuntu sudo apt-get install libcairo2-dev

MacOS brew install py3cairo

Run the requirement installation command again

  1. Set up the database by running the following commands: By default the test database will be loaded which will have demo data inside it. If you wish to start with a fresh database, you can either remove the TestDB_Horilla.sqlite3 from the project directory or change the name of the database inside the horilla/settings.py file. (You can configure different database based on your choice, of which configurations settings is given below in the documentation.
python manage.py makemigrations
python manage.py migrate
  1. Create an admin employee account (use this command if you are starting with a fresh database, for the demo database there is already a Horilla admin user created with credentials admin and admin as username and password respectively).
python manage.py createhorillauser

Note: createhorillauser is a similar command to createsuperuser in Django, which creates an admin user along with a related admin employee into the database.


Enter the details asked for creating the admin user for the project.
  1. Enabling the translations and breadcrumbs text

    python manage.py compilemessages
  2. Collect all the static files in the 'settings.STATIC_ROOT' directory (your_project/staticfiles/ by default). In production, you should serve this directory directly by your webserver.

    python manage.py collectstatic
    
  3. Running the project To run the project locally, execute the following command:

python manage.py runserver

If everything is configured correctly, you should be able to access your Horilla app at http://localhost:8000.

Note:

If you wish to run the Horilla application to any other port, you can specify the port number after the runserver command.

eg: python manage.py runserver <port_number>

Note:

By default a SQLite database will be setup for the project with demo data already loaded.

If you wish to start with a fresh database, remove the db.sqlite3 file from the project directory and run the migrate command followed by the createhorillauser command to start with a fresh database.

Or if you wish to change the database, refer the below section.

Database Setup


By default an SQLite database will be setup for the project, incase you wish to change the database of your choice, please use the below reference to do the same.

PostgreSQL

To setup postgresql database for the project, first you have to install the PostgreSQL and its python package psycopg2 .

  1. Install the psycopg2 package using pip. This package is a PostgreSQL database adapter for Python.
pip install psycopg2
  1. In the project settings file (settings.py), add the following database settings:
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': '<database_name>',
        'USER': '<database_user>',
        'PASSWORD': '<database_password>',
        'HOST': '<database_host>',
        'PORT': '<database_port>',
    }
}

Replace <database_name>, <database_user>, <database_password>, <database_host>, and <database_port> with your PostgreSQL database settings.

  1. Run migrations to create the necessary database tables.
python manage.py makemigrations
python manage.py migrate

For more details: Django PostgreSQL Database

MySQL

To configure a MySQL database in Django, follow these steps:

  1. Install the mysqlclient package which will allow Django to interact with MySQL. You can install it using pip:
pip install mysqlclient
  1. In the project settings file (settings.py), add the following database settings:
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': '<database_name>',
        'USER': '<database_user>',
        'PASSWORD': '<database_password>',
        'HOST': '<database_host>',
        'PORT': '<database_port>',
    }
}

Replace <database_name>, <database_user>, <database_password>, <database_host>, and <database_port> with the appropriate values for your MySQL installation.

  1. Run migrations to create the necessary database tables.
python manage.py makemigrations
python manage.py migrate

For more details: Django MySQL Database

MariaDB

To configure a MariaDB database with Django, you can follow the same steps used for MySQL database configuration as shown above. For more details: Django MariaDB Database

SQLite

To configure a SQLite database with Django, you can follow these steps:

  1. In the project settings file (settings.py), add the following database settings:
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': BASE_DIR / 'db.sqlite3',
    }
}

This will create a SQLite database in your project directory named db.sqlite3.

  1. Run migrations to create the necessary database tables.
python manage.py makemigrations
python manage.py migrate

Note that SQLite has some limitations compared to other databases, so you may need to consider these limitations if you have a large amount of data or a high level of concurrency in your application.

For more details: Django SQLite Database

Oracle

To configure an Oracle database with Django, you can follow these steps:

  1. Install the cx_Oracle package which will allow Django to interact with Oracle. You can install it using pip:
pip install cx_Oracle
  1. In the project settings file (settings.py), add the following database settings:
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.oracle',
        'NAME': '<database_name>',
        'USER': '<database_user>',
        'PASSWORD': '<database_password>',
        'HOST': '<database_host>',
        'PORT': '<database_port>',
    }
}

Replace <database_name>, <database_user>, <database_password>, <database_host>, and <database_port> with the appropriate values for your Oracle installation.

  1. Run migrations to create the necessary database tables.
python manage.py makemigrations
python manage.py migrate

Note that Oracle has some specific requirements for its database setup, so you may need to consult Oracle's documentation for more information on how to set up your database correctly.

For more details: Django Oracle Database

Features

  • Recruitment
  • Onboarding
  • Employee
  • Attendance
  • Leave
  • Asset
  • Payroll
  • Performance Management System

Roadmap

  • Calendar App - Development Under Process

  • Project Management - Development Under Process

  • Chat App - Development Under Process

  • More to come.....



Laguages and Tools Used:


bootstrap chartjs css3 django git html5 linux mysql oracle postgresql python sqlite



AUTHORS

Cybrosys Technologies

ABOUT

Horilla

About

Horilla is a free and open source HR software.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 50.1%
  • Python 31.3%
  • JavaScript 16.3%
  • CSS 1.3%
  • SCSS 1.0%
  • Shell 0.0%