Skip to content

A webpage for advanced and automated booking of group rooms at MDH

License

Notifications You must be signed in to change notification settings

Roslund/GroupRoomMaffia

Repository files navigation

Build Status StyleCI License: MIT

GroupRoomMaffia

A webpage for advanced and automated booking of group rooms at Mälardalen University (MDH)

Introduction

Mälardalen University provides limited places to studdy. The School has bookable group rooms that has to be booked in advance. For students the rooms can be booked one week in advance, and generally you have to. I originally created a command line tool in Swift to book and schedule bookings. But I feel that a webpage makes more sense.

How?

The webpage is build using Laravel 5.5 and Bootstrap v4. It's hosted using a VPS from DigitalOcean with a cert from LetsEncrypt. It communicates with MDH's booking server using HTTP requests to thier website.

Credit

Functionality

It's still a work in progress and currently provides equal functionality to MDH's website as well as the following:

  • Abillity to unbook started bookings.
  • Multiple users - Each user can have multiple MDH session
  • Session are kept alive
  • Schedule bookings that are more than a week away
  • Recuring weekly bookings
  • Friends System - Highlight your and your frinds bookings.

Installation

Requirements

  • PHP >= 7.1
  • Composer

Steps

  1. If you haven used composer before
wget https://getcomposer.org/installer
php installer
sudo mv composer.phar /usr/local/bin/composer
sudo apt-get install php7.2-mbstring 
sudo apt-get install php-xml
  1. Clone the repo and install dependencies
cd /var/www/
git clone https://github.com/Enari/GroupRoomMaffia.git
cd GroupRoomMaffia/
composer install
  1. Copy env.example to .env and generate an application key.
cp .env.example .env
php artisan key:generate
  1. Edit the .env file with your enviorment comfiguration.

  2. Migrate the database

php artisan migrate
  1. Enable automatic polling of "MDH users sessions" by calling php artisan schedule:run using chron.

enter sudo crontab -e and add th following line.

*  *    * * *  php /var/www/GroupRoomMaffia/artisan schedule:run >> /dev/null 2>&1
  1. Point you webserver to GroupRoomMaffia/public, note that mod_rewrite needs to be enabled.

About

A webpage for advanced and automated booking of group rooms at MDH

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published