Giter Site home page Giter Site logo

jizhonglee / web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from studentenportal/web

0.0 1.0 0.0 4.91 MB

Das HSR Studentenportal 2.0

License: GNU Affero General Public License v3.0

Python 48.16% HTML 12.65% CSS 7.63% JavaScript 31.34% Ruby 0.15% Shell 0.06%

web's Introduction

Studentenportal 2.0

Build Status Coverage Status Code Health

Dies ist ein re-launch des HSR Studentenportals. Es hat das alte Portal im Frühling 2012 abgelöst und soll es in Sachen Ruhm und Ehre weit überholen.

f*ck yeah!

Technologie

Das Studentenportal nutzt Python/Django.

Features

  • Upload und Bewertung von Zusammenfassungen, alten Prüfungen etc
  • Events mit iCal Export
  • Faire Dozentenbewertungen
  • Unterrichtszitate
  • Flattr Integration
  • Deployment with ansible

Featurevorschläge sind willkommen! Aktuell geplante Features und Featurewünsche können auf https://github.com/studentenportal/web/issues eingesehen und erstellt werden.

Development

Requirements:

  • Python >= 2.7
  • PostgreSQL >= 9.1
  • PostgreSQL Contrib Pakete (Debian: postgresql-contrib-9.1)

Um die Entwicklungsumgebung einzurichten:

  1. Repository clonen
  2. Python Virtualenv erstellen und aktivieren
  3. psql -d template1 -c 'CREATE EXTENSION citext;'
  4. createuser -e -P -d -E -s studentenportal (Passwort "studentenportal")
  5. createdb -e -O studentenportal -U studentenportal studentenportal
  6. pip install -r requirements/local.txt
  7. python manage.py syncdb
  8. python manage.py migrate
  9. python manage.py runserver

Um die Tests auszuführen:

  1. pip install -e .
  2. pip install -r requirements/testing.txt
  3. ./test.sh

Falls ein Datenbankfehler auftritt, weil das Schema sich geändert hat:

  1. python manage.py syncdb
  2. python manage.py migrate

Wenn du die Twitter Einbindung nutzen willst, musst du im Developer Center eine App erstellen und folgende Umgebungsvariablen setzen:

  • TWITTER_CONSUMER_KEY
  • TWITTER_CONSUMER_SECRET
  • TWITTER_ACCESS_KEY
  • TWITTER_ACCESS_SECRET

Testdaten

Testdaten können am einfachsten via django-admin (http://localhost:8000/admin) angelegt werden.

Es gibt aber auch einige Files mit Testdaten in den fixtures Verzeichnissen der Apps. Voraussetzung dafür sind zwei Benutzer mit den Primärschlüsseln 1 und 2 (am besten mit python manage.py createsuperuser erstellen).

  • Studiengänge: python manage.py loaddata courses
  • Events: python manage.py loaddata events

Bei anderen Daten (zB bei den Dozenten) kann man gleich mit echten Daten arbeiten. Die Daten werden direkt von der HSR Website bezogen. Man braucht dafür ein funktionierendes HSR Login.

  • Dozenten: python manage.py fetch_lecturers --user=<hsr-username>
  • Module: python manage.py fetch_modules

Fragen

Bei Fragen wende dich an [email protected] oder https://twitter.com/studportal_hsr.

Lizenz

Der Code wird unter der AGPLv3 (oder einer späteren Version der AGPL) veröffentlicht.

web's People

Contributors

dbrgn avatar lukasmartinelli avatar petermanser avatar fabian avatar gysel avatar

Watchers

果山 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.