Empower Your HR with Next-Gen Open Source Self-Serve Platform
To install Libur.run, please follow the instructions provided below. Once you've installed and set up the platform, you'll be able to start managing your HR needs with ease. The following installation is manual, meaning you have responsibilty for the requirements. If you are using Docker, you can follow the installation with Docker.
Before you install and start using Libur.run, please make sure your system meets the following requirements:
- Ruby version 3.1.2
- Node.js 16 or newer
- PostgreSQL 14 or newer
- Redis 6 or newer
- Give a star to support this project on GitHub :)
- Before you start, make sure you have Ruby 3.1.2, PostgreSQL, and Redis installed on your machine.
- Clone or download the Libur.run repository.
- Start the PostgreSQL and Redis databases, and make note of the credentials for each database as you'll need to configure the application later.
- Navigate to the application directory and copy the
.env.example
file to.env
withcp .env.example .env
. - Open the
.env
file and change theREDIS_URL
to your local Redis database (usuallyredis://localhost:6379/1
). - Update the
DATABASE_*
environment variables with the correct values for your PostgreSQL database. - Don't forget to set the
SECRET_KEY_BASE
, as it will be used for encryption. - Finally, install the dependencies by running
bundle install
andyarn install
.
- Open your terminal and navigate to the Libur.run application directory.
- Create the application database by running the following command:
rails db:create
- Migrate the schema by running the following command:
rails db:migrate
. If any errors occur, double-check your database configuration in the application. - Populate some initial data before starting the application by running the following command:
rails db:seed
- Open your terminal and run
./bin/dev
to start the application. - Wait until all processes are complete.
- Open your browser and access
localhost:3000
. You're now ready to start using Libur.run. Welcome!
Installing Libur.run with Docker makes the process easy and smooth. To get started, make sure that Docker is installed on your machine and that Docker Compose V2 is enabled. You can find the Dockerfile
and compose.yml
files in the root directory of the Libur.run repository.
Here are the steps to install Libur.run with Docker:
- Give a star to support this project on GitHub :)
- Ensure that Docker is running on your machine, and open a terminal and navigate to the application directory.
- Create
.env
file by runningcp .env.example .env
and then set theDATABASE_HOST
todb
andREDIS_URL
toredis://redis:6379/1
in.env
file. - Don't forget to set the
SECRET_KEY_BASE
, as it will be used for encryption. - Build the image by running
docker compose build
. Wait until the process is complete. - Start the application by running
docker compose up
ordocker compose up -d
to run the containers in the background (detached mode). - To set up the database, open a new terminal window (if you're not using detached mode) and run
docker compose exec web bin/rails db:setup
. - Once the database is set up, the application will be ready to use. Open your browser and access
localhost:3000
. Enjoy using Libur.run!
Getting started with Libur.run is easy! Simply access the URL, if running locally, localhost:3000
. On the installation page, you'll be guided through a few simple steps to set up your account. Just follow the prompts and you'll be ready to go in no time!
TODO: Add Installation Video
The following features are disabled by default and can be enabled by following these instructions.
To send emails through the application, you can use an SMTP server. Our framework supports this feature and it can be easily enabled by adding some environment variables. You can add these variables to your system in the .env
file.
Variable name | Default value |
---|---|
SMTP_ADDRESS | |
SMTP_AUTHENTICATION | :plain |
SMTP_DOMAIN | |
SMTP_ENABLE_STARTTLS | true |
SMTP_PASSWORD | |
SMTP_PORT | 587 |
SMTP_USERNAME |
Once you have set the environment variables, go to the config/environments
directory and open the environment file you want to enable SMTP on. For example, if you want to enable SMTP on the production environment, edit the config/environments/production.rb
file.
- Add the SMTP configuration at the top of the file by including require
Rails.root.join("config/smtp")
. - Change the delivery method to
:smtp
by usingconfig.action_mailer.delivery_method = :smtp
. - Set the SMTP server you configured earlier by using
config.action_mailer.smtp_settings = SMTP_SETTINGS
. - You may also need to update the default email for the mailer in
app/mailers/application_mailer.rb
.
With these steps, the application will use your SMTP server to send emails. Enjoy!
Work in progress
If you're interested in contributing to Libur.run, please read our contributing docs before submitting a pull request.
Libur.run is open-source software licensed under the MIT License. This means you're free to use, modify, and distribute the software as you see fit, subject to certain conditions outlined in the license. For more details, please see the LICENSE file.