GithubHelp home page GithubHelp logo

msf4-unikent / programmes-plant Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unikent/programmes-plant

0.0 1.0 0.0 5.18 MB

A comprehensive solution for the management of university programmes, that produces an XCRI feed.

License: GNU General Public License v3.0

PHP 96.68% Perl 0.06% JavaScript 3.23% Shell 0.03%

programmes-plant's Introduction

Programmes Plant

The Programmes Plant is part of the XCRI-CAP project at the University of Kent, and is a replacement for the existing Programmes Factory.

It is written in Laravel and using Twitter Bootstrap.

Programmes plant homepage screenshot

Build Status

Build Status - master master

Build Status - develop develop

Development Setup

The following are instructions on running the Programmes Plant on a local machine for development.

Method 1

Install this in one line? Why of course! Should work on any sensible Unix like system with Git installed.

curl -s https://raw.github.com/unikent/programmes-plant/setup/setup.sh > temp.sh && sh temp.sh && rm temp.sh

Method 2

  1. Clone this repository. Change into the directory.

  2. Obtain Laravel as a submodule by running git submodule init then git submodule update, unless you have done a recursive clone. Note that this app uses the University of Kent Laravel fork, because this contains important performance enhancements as yet not pulled into the Laravel core. This fork is generally kept up to date with the Laravel master branch, so including it as a submodule should give you the latest version of Laravel. We also use the Verify Laravel bundle as a sub-module but maintain our own fork.

  3. Install Composer and run composer.phar install --dev to install dependencies.

  4. You need to setup the application by editing all the sample files in config/ and moving them to config/local/ filling in as appropriate. To move the files in one command, run:

mkdir application/config/local && cp application/config/*.sample application/config/local && ls application/config/local/*.sample | while read file; do mv $file  `echo $file | sed s/.sample//`; done
  1. You will need to create a MySQL database. Create this database and add the credentials to application/config/local/database.php.

  2. The application requires an authentication driver to be used. The details of this can be setup in application/config/local/auth.php. We use our own LDAP Verify driver. If you decide to use our bundled LDAP Verify driver, the server settings can go in application/config/local/ldap.php.

  3. Run php artisan migrate:install --env=local to setup the migtations table. Then run php artisan migrate --env=local to run all the migrations to setup your database.

  4. Run php artisan setinitialuser <your username> --env=local to setup the hyperadmininistrator (the user with all access on the application - a.k.a The Big Cheese). This user must correspond to a valid LDAP user if you are using LDAP.

  5. Point a web server at the public/ folder. If the domain you have aliased locally is not like 'localhost' or '*.dev' then Laravel will not be able to work out that you are running in the local environment and it will throw an exception on every page. If you want to use something other than these, add your environment to the array at 'local' => on line 25 of ./paths.php at the root of this repository.

  6. Point a browser to the URL of the Programmes Plant!

Seeding the data

We have provided some data seeds to allow you to get going with some sample data, particularly for programme data.

To run all the seeds type php artisan seed --env=local.

Testing

Unit tests are written in PHPUnit. To run the tests run php artisan test. The tests use an in memory SQLite database to make them significantly faster.

Other Projects

Want to consume the data from a Programmes Plant API? Consider using our PHP library for this.

Want to see what a front-end to this data might look like using this library? See Of Course.

Licensing

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 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/.

programmes-plant's People

Contributors

conatus avatar gnozu avatar jtisqo avatar mb324-unikent avatar msf4-unikent avatar tg79-unikent avatar thybag avatar tomgillett 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.