Gadael is a powerful leave management application with rights attributions based on complex rules and periods planing. With Gadael you can:
- Schedule multiples leave renewal periods in advance.
- Automatically make adjustments of quantity based on the consumption on other rights.
- Export your data for your payslip application.
- Sync plannings with your google calendars.
- Set up a policy for overtime recovery in the form of holiday entitlements.
- Multi-level approval work-flow
With git and NPM
Gadael can be installed from the git version, this is the best choice for taking advantage of the lastest features. For this to work, some dependencies need to be installed on the system first, you will have to install the dependencies using your system packages manager or manually.
- MongoDB, the database server, version 3 is required.
- git, this is the version control system used for Gadael development
- npm, for nodejs dependencies
- bower, for front-end dependencies
Then the install process can be resumed with this list of commands:
Create the config file:
You will have to configure an SMTP host and a root url in this file for the emails notifications to work correctly.
First argument is the database name, default is gadael.
Second argument is your company name, default is “Gadael”.
Third argument is the country code used to initialize the database, if not provided the leave rights list will be empty. You can check the list of supported countries in the documentation
You will have to start the server with this command:
open http://localhost:3000 in your browser, you will be required to create an admin account on the first page.
Congratulation! your setup is working!
Using a Docker container
Use the SaaS version
If you have no server available and want to take advantage of automatic updates to the last version, you can use Gadael directly from gadael.com, it’s free for team up to 5 users. If you choose to subscribe to a paid plan you will benefit from the email technical support for all your configuration problems.
Set up a reverse proxy
Application listen on localhost only by default, an https reverse proxy will be necessary to open access to users. This will add the ability to serve the application on the default port.
The examples given here are on a Debian system, a similar setup is possible with another distribution or package manager. We will use mydomain.com as an example URL, you must have a domain name already configured and linked to the web server by DNS configuration.
Using the Apache web server
So first of all, we need to install Apache2:
Next thing we’ll have to do is proxy all request incoming on port 80 to the gadael local port. For this, we need to install/enable mod_proxy and mod_proxy_http modules on the Apache server:
Then we’ll configure a VirtualHost like this:
With the content:
The new virtual host need to be enabled before restarting apache:
After this last step, you can access your application using only http://mydomain.com/. This configuration can be enhanced by adding ssl certificates for the HTTPS protocol.
Using the nginx web server
Edit the default site configuration:
Setting this content will redirect request from port 80 the the port 3000. If a port different than 3000 was used in your gadael configuration, you must change the
A restart of the server is required:
Configure a custom login strategy
Login options are stored in the company document in database
Add a CAS authentication method with the command line mongo client :
Working with the API
gadael allows to use the API to exchange with the database in the same way as the web interface. To do this, you need to create a specific user with the administrator role.
The obtained API key allow to authenticate with oauth2.
This is the list of paths with API access enabled by default:
Use the API to get the users list
step 1, get an access token:
step 2, use access token to get the list of users: