This tutorial walks administrators through the initial configuration of CHRIS.
Prerequisites
- Access to CHRIS with an admin role account
- Supabase project with database migrations applied
- SMTP server credentials (for email notifications)
Overview
Initial setup involves configuring:
- Company settings
- Email (SMTP) configuration
- Leave types and policies
- Holiday schemes
- Your first employees and teams
Step 1: Access Admin Settings
- Sign in with your admin account
- Click Settings in the navigation menu
- You'll see tabs for different configuration areas
!!! note "Admin-Only Access"
Settings pages are only visible to users with the admin role.
Step 2: Configure Company Information
Navigate to Settings > Company:
| Field | Description | Example |
|---|---|---|
| Company Name | Your organization's name | Acme Corporation |
| Default Language | Primary language | Croatian |
| Date Format | How dates are displayed | DD/MM/YYYY |
Click Save to apply changes.
Step 3: Set Up Email Notifications
Navigate to Settings > Email:
SMTP Configuration
| Field | Description | Example |
|---|---|---|
| SMTP Host | Mail server address | smtp.gmail.com |
| SMTP Port | Server port | 587 |
| Username | SMTP authentication | notifications@company.com |
| Password | SMTP password | (app-specific password) |
| From Email | Sender address | hr@company.com |
| From Name | Sender display name | CHRIS HR System |
| Use TLS | Enable encryption | Yes (recommended) |
Test Your Configuration
- Click Send Test Email
- Check your inbox for the test message
- If successful, you'll see a confirmation
!!! warning "Gmail/Outlook Users" Use an app-specific password instead of your regular password:
- Gmail: [Create App Password](https://myaccount.google.com/apppasswords)
- Outlook: [App Passwords](https://account.live.com/proofs/AppPassword)
Email Rerouting (For Testing)
Enable Email Rerouting to redirect all emails to a test address during setup:
- Toggle Enable Rerouting to on
- Enter a test email address
- All notifications will go to this address instead of actual recipients
Step 4: Configure Leave Types
Navigate to Settings > Leave Types:
Default leave types include:
| Type | Description |
|---|---|
| Annual Leave | Paid vacation days |
| Sick Leave (Short) | Short-term illness (up to 3 days) |
| Sick Leave (Long) | Extended illness with documentation |
| Family Leave | Family emergencies |
You can customize:
- Names in each language
- Default entitlement days
- Whether documents are required
- Carryover policies
Step 5: Set Up Holiday Schemes
Navigate to Settings > Holidays:
-
Click Add Holiday Scheme
-
Enter scheme details:
- Name (e.g., "Croatia 2025")
- Country
- Year
-
Add public holidays:
- Date
- Name in each language
- Type (national, religious, etc.)
!!! tip "Import Holidays" You can import holidays from previous years and adjust dates.
Step 6: Add Your First Employee
Navigate to Employees > Add Employee:
Basic Information
| Field | Required | Description |
|---|---|---|
| Yes | Login email address | |
| First Name | Yes | Employee's first name |
| Last Name | Yes | Employee's last name |
| Role | Yes | admin, hr_manager, or employee |
Contract Details
| Field | Description |
|---|---|
| Position | Job title |
| Start Date | Employment start |
| Contract Type | Full-time, Part-time, etc. |
| Leave Entitlement | Annual leave days |
| Holiday Scheme | Which public holidays apply |
Click Create Employee to send them a welcome email with login instructions.
Step 7: Create Teams
Navigate to Teams > Add Team:
- Enter team name
- Select a team leader (must be an existing employee)
- Add team members
!!! info "Team Leaders" Team leaders can approve leave requests for their team members.
Step 8: Verify Setup
Run through this checklist:
- [ ] Company name displays correctly
- [ ] Test email was received
- [ ] Leave types are configured
- [ ] Holidays are set up for the current year
- [ ] At least one admin user exists
- [ ] At least one team is created
Next Steps
Your CHRIS installation is now ready for use:
- Add more employees
- Configure email templates
- Set up additional teams
- Review the security model
Common Setup Issues
Emails Not Sending
- Verify SMTP credentials
- Check that TLS is enabled if required
- Review Edge Function logs in Supabase dashboard
- Ensure firewall allows outbound SMTP
Missing Translations
If UI shows keys like common.save:
- Check
translationstable has data - Run migrations:
npx supabase db push --linked
Permission Denied Errors
- Verify your account has
adminrole - Check RLS policies are applied
- Sign out and sign back in to refresh session