π Web application for managing employee absences with style!
Visit http://timeoff.management/ and create a company account to use the cloud-based version.
# Clone the repository
git clone https://github.com/timeoff-management/application.git timeoff-management
cd timeoff-management
npm install
npm start
# Pull the image
docker pull aliengen/timeoff-management-application:master
# Run the container
docker run -d -p 3000:3000 --env-file ./env --name timeoff aliengen/timeoff-management-application:master
cp .env.example .env
Choose your database configuration:
Option 1: External Database (recommended for production)
Option 2: Local Database (recommended for development)
Start the application:
docker-compose up -d
The application will be available at http://localhost:3000 (or your configured port).
The application supports two database setup options:
External Database (recommended for production)
DATABASE_URL=postgresql://user:pass@host:5432/dbname?sslmode=require
Local Database (recommended for development)
Choose the option that best fits your needs. For development, the local database option provides a simpler setup. For production, an external database offers better reliability and features.
Configuration can be done through environment variables or JSON configuration files.
Here's a summary of key environment variables you can set:
BRANDING_URI
: URL of the TimeOff.Management applicationBRANDING_WEBSITE
: URL of your company's websiteHEADER_TITLE
: Custom header title for the applicationDATABASE_URL
: Full database URL (for external databases)DB_DATABASE
, DB_USER
, DB_PASSWORD
, DB_HOST
: Database configuration (for local databases)DB_DIALECT
: Database type (mysql, postgres, sqlite, mssql)OPTION_ALLOW_NEW_REGISTRATIONS
: Set to true to allow new company registrationsSMTP_*
: Various SMTP settings for email configurationCRYPTO_SECRET
: Secret key for password hashingSESSION_SECRET
: Secret key for session managementFor a complete list of options, refer to the .env.example
file in the project root.
USE_CHROME=1 npm test
git fetch
git pull origin master
npm install
npm run-script db-update
npm start
Please report any issues or feedback via by opening an issue
Happy time off management! π΄ποΈ