Skip to content
/ moore Public
forked from UTNkar/moore

Project Moore: a Wagtail/Django based web-application for the UTN IT infrastructure

License

Notifications You must be signed in to change notification settings

Helienzo/moore

 
 

Repository files navigation

Project Moore

Build Status

Project Moore is a replacement for many of the UTN web applications. Built using Wagtail and the Django framework, Project Moore intends to replace obfuscated custom applications. This is why this project keeps a high regard to programming practice and documentation.

Any questions about the project can be send to the UTN system administrator.

Before contributing please read through our contribution guidelines.

Getting Started

To get started with Project Moore, follow these instructions to set up a development environment:

  1. Install Python 3, at least version 3.5 or up.
  2. Clone the repository.
  3. Run source ./source_me.sh to create a virtual environment.
  4. Run pip install -r dev-requirements.txt
  5. Use cd website to enter the website directory.
  6. Run ./migrate.py migrate to initialize the database.
  7. Run ./migrate.py creatsuperuser to create an admin user.

During development, you can run a test web server using ./migrate.py runserver.

Documentation

Documentation for Project Moore is split up into two parts. All documentation regarding Project Moore's code base is located within the code. Like the rest of the UTN infrastructure, a global overview of the application is documented on docs.utn.se

Testing

All code in this repository is tested in two ways: we use Django test suites and we run the flake8 style enforcer. Together they can promote clean and good code.

These tests are run automatically using Travis CI. If, however, you want to run these tests locally you can run the following commands in the project root directory:

  • ./website/manage.py test website - to test with our Django test suites
  • flake8 website - to run the flake8 style enforcer

Translating

Project Moore intends to be multilingual. The web application is available in both Swedish and English. Whenever any translatable text is added or changed it should be translated using translation files.

Within Project Moore we use American English.

To create translations for an app:

  1. cd website/<appname>
  2. ../manage.py makemessages
  3. This will create or update the files under website/<appname>/locale/.
  4. Use poedit (or your favourite tool -- please do not use a plain text editor since those cannot handle all the subtleties) to fix the translations.
  5. ../manage.py compilemessages

License

AGPL-v2.0

About

Project Moore: a Wagtail/Django based web-application for the UTN IT infrastructure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 36.8%
  • CSS 32.3%
  • HTML 25.3%
  • JavaScript 5.4%
  • Shell 0.2%