Code Monkey home page Code Monkey logo

sikteeri's Introduction

Coverage via Codecov Test results at Travis CI

REQUIREMENTS

The following software is required to install Sikteeri.

  • Python 2.7
  • gettext
  • openldap and sasl dev for LDAP support

For production, additionally:

  • PostgreSQL

HOW TO RUN

Create virtualenv environment

./install-virtualenv.sh

OR you may create and activate virtualenv from requirements.txt manually.

Activate virtualenv

source env/bin/activate

Initialize development database

./manage.py migrate && \
./manage.py createsuperuser && \
./manage.py loaddata membership/fixtures/membership_fees.json && \
./manage.py generate_test_data

Use development settings

export SIKTEERI_CONFIGURATION=dev

Compile translations and run development server

./run-sikteeri.sh

Access the development server at

http://127.0.0.1:8000/

Log in at

http://127.0.0.1:8000/login/

Run unit tests (always before committing changes)

./manage.py test

OR with py.test:

pip install pytest pytest-cov pytest-django
./test.sh

Settings

If you want to override settings, create a local settings file which has "import * from sikteeri.settings" and set:

export DJANGO_SETTINGS_MODULE=sikteeri.my_settings

The default settings.py must be the default development configuration and work out of the box for quick development. Production settings (email subjects, bank account numbers etc.) are configured as JSON file.

Docker

To make development easier there exists a Dockerfile to use as a development container.

To build a new version:

docker build -t sikteeri .

To run it:

docker run -ditp 8080:8080 --name sikteeri sikteeri

To run it with bash as initial command:

docker run -itp 8080:8080 --name sikteeri sikteeri /bin/bash

To attach to Django std feed:

docker attach sikteeri

To attach a shell to a running instance:

docker exec -it sikteeri /bin/bash

sikteeri's People

Contributors

joneskoo avatar ahinkka avatar annttu avatar str4nd avatar uduntuntu avatar zokier avatar wraithh avatar olmari avatar jkjuopperi avatar rissalmi avatar killedwhale avatar ptmuta avatar atonkyra avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.