Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Spirit-Website/Webapp for Students
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
application
library
public
scripts
tests
.gitignore
.zfproject.xml
README.txt

README.txt

This is another application for the Spirit project from the Faculty of Computer Science
 of the University of Applied Sciences Schmalkalden. In GitHub it is called "studweb" because 
 it will be the new front end for the students.

Feature list and more details coming soon!

Programming hints:
* PHP with Zend Framework
* HTML5
* MySQL (for development - later it will be REST for productional usage)


INSTALLATION:

Please fit the following parameters in the file application.ini to your own needs:
resources.db.adapter = "PDO_MYSQL"
resources.db.params.dbname = "spirit"
resources.db.params.host = localhost
resources.db.params.username = "spiritUser"
resources.db.params.password = "spirit"

In the sub-directory "scripts/" are the load scripts for the actual db-structure and testing data stored.
You have to execute this script from a terminal or the DOS command line with the following command:
	% php scripts/load.mysql.php --withdata

Now you have a running MySQL database.

You will also need to point your web server to the
application. Using apache, you could add a vhost as follows:

    <VirtualHost *:80>
        ServerAdmin spirit@fh-schmalkalden.de
        DocumentRoot <PATH_TO_STUDWEB>/public
        ServerName studweb
        SetEnv APPLICATION_ENV "development"

        <Directory <PATH_TO_STUDWEB>/public>
            DirectoryIndex index.php
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
    </VirtualHost>

You **must** substitute the correct path to this directory for
<PATH_TO_STUDWEB>. Feel free to substitute any value for the
ServerName directive; make sure that name and the associated IP address
are in your hosts file or in your DNS.

You have to write the following line in your hosts file:
127.0.0.1 studweb


Finally, point your browser to http://studweb/ to see the
application in action.

For the development the following user is available:
USER: Student
PW: geheim
Something went wrong with that request. Please try again.