Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
/ 925r Public archive

ninetofiver (925r): a free and open source time and leave tracking application.

License

Notifications You must be signed in to change notification settings

kalmanolah/925r

Repository files navigation

ninetofiver

Build Status Coverage Status GitHub issues License

ninetofiver (or 925r) is a free and open source time and leave tracking application.

Installation

Install build dependencies:

apt-get install -y python-dev libldap2-dev libsasl2-dev libssl-dev

You'll need pipenv. Installing it is super simple:

pip install pipenv

After that, installing the application is smooth sailing:

pipenv install

Once your pipenv is set up, you can use pipenv shell to get a shell, or just prefix additional commands with pipenv run.

Usage

  1. Run python manage.py migrate to create the models.

  2. Run python manage.py createsuperuser to create an admin user

Running (development)

Running the command below starts a development server at http://127.0.0.1:8000.

python manage.py runserver

Running (production)

Running the command below starts a server using the production configuration at http://127.0.0.1:8000.

Note: The insecure flag is used to allow the server to serve static files.

python manage.py runserver --configuration=Prod --insecure

Configuration

Since this application is built using Django, you can configure the settings which will be loaded using the environment variables DJANGO_SETTINGS_MODULE (defaulting to ninetofiver.settings) and DJANGO_CONFIGURATION (defaulting to Dev).

The application will also attempt to load a YAML configuration file from a location specified using the environment variable CFG_FILE_PATH (defaulting to /etc/925r/config.yml) and use the resulting data to override existing settings.

For example, if you wanted to override the secret key used for production you could use the following configuration:

# Use your own secret key!
SECRET_KEY: mae3fo4dooJaiteth2emeaNga1biey9ia8FaiQuooYoac8phohee7r

Testing

Run the test suite:

tox

License

See LICENSE

ninetofiver (925r): a free and open source time and leave tracking application.
Copyright (C) 2016-2019 Kalman Olah

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

About

ninetofiver (925r): a free and open source time and leave tracking application.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages