- Installation
- Create Account
- Add a local admin
- Create Institution
- Create a room
- Booking a seat
- Track and Trace
User Documentation can be found within /resources/docs/1.0
- Step 1: XAMPP
- Step 2: Composer
- Step 3: NPM
- Step 4: Clone Git Repo
- Step 5: Install Dependencies
- Step 6: Create and Connect Database
- Step 7: Migrate and Seed Database
Install XAMPP onto your system,
- (Download Link) : https://www.apachefriends.org/download.html
- (Alternate Download Link) : https://www.apachefriends.org/index.html
- These links have installers for Windows, MacOS and Linux
Install Composer onto your system Composer is a package manager for PHP
-
(Download link + Tutorial) : https://getcomposer.org/download/
- Links has information on how to install for Windows, MacOS and Linux -
-
Once downloaded run command
composer -Vto ensure it is installed correctly
- Ensure that NPM is installed on the system
- Open a command line interface
- Navigate to the directory you would like the application to be
- Use the command
git clone https://github.com/compSci-sc17mtab/SeatReservationSystem.git
- Ensure you are within the project directory
- Run command
composer installto install Laravel dependencies - Run command
npm installto install JS dependencies
A database can be created using two methods
Ensure you have the MySQL path in your variables
- Open a command line interface and enter command
mysql -u root - Once logged in use
create database app;to create the database
- Start
XAMPP - Start
MySQLandApacheservers - Open
phpMyAdminthrough XAMPP - Create a new database called
app
- Open the
.envfile- If there is no
.envfile then rename the '.env.example' to '.env' and use that
- If there is no
- Find the
DB_DATABASE=line. - Change this to
DB_DATABASE=app - Run the command
php artisan servecommand. It should automatically connect to the database
If you have just run
php artisan serveensure that this is stopped before proceeding!
-
Use the command
php artisan migrateto migrate the database -
Find the file
SeatReservationSystem/database/AdminSeeder.php -
This file will create the administrator account
-
Change the email from
PleaseChangeThis@gmail.comto the email address of the chosen administrator -
Please change the password from
PleaseChangeto what you would like.
If in production change this password once database is seeded
-
The database can populate the database with example data to help with testing, if you would like this, tun the command
php artisan db:seed -
If you do not want these examples use the command
php artisan db:seed --class=AdminSeedto only seed the admin account. -
The example data creates:
- Example Institute called
Example Institute - Example Room called
Example Room - Multiple bookings on
25/07/2021at7:00
- Example Institute called
- Click the ‘Register’ Button,
- Enter your details
- Press the ‘Register’ button once the details are entered.
- Ensure that the dashboard is displayed
- If they need to be made a Local administrator pleases see Add Local Admin
- Ensure you are logged in as the main Administration account
- Within the top right dropdown select
Team Settings
- Ensure that the currently selected team under
Team NameisLocal Admins - Under the
Add Team Membersection enter the local admins email address - There are three options for their role, select the
Local Adminrole
Ensure that you do not select
AdministratororEditorthis will give them the incorrect permission
- Select the
Addbutton to add them to theLocal Adminsteam.
- Ensure that the currently selected team under
Team NameisLocal Admins - Under the
Team Memberssection find the user that needs their permissions removed - Select
Removeon the far right to remove, selectRemoveon the pop-up to confirm
- Ensure that user has been added to the 'Local Admins` team.
- Within the top right dropdown select
Team Settings - The users teams are listed within the
Switch Teamssection of the dropdown - See Add Local Admin for more details
- Within the top right dropdown select
- Within
Extraselect theAdd Institutionoption - Input the name and the passcode
- Passcode is used to access an institution to make a booking
- Ensure you are within the
Local Adminsteam. - This can be found by selecting the dropdown in the top right, the users teams will be displayed in the
Switch Teamssection. - Ensure that you have the correct institution selected.
-
Select the
Extradrop down -
Within this select the
Create Roomoption -
Input the
Room Name,Opening Timeand theClosing Time -
Upload the rooms floor plan
Ensure that the floor plan is correctly scaled or the social distancing safety feature will not work
- Within the
Extradropdown select theEdit Roomoption. - Select room that needs editing.
- 'ALT' + 'Left Click': Move view of canvas
- 'Mouse wheel': Changes level of zoom
- 'Alter Slider': Changes size of shapes
- 'Reset View': Resets the view of the canvas
- 'Colour Options' : Various Colour Pallets to allow a user to change the seat colours
- The reference length is used to ensure that seats are socially distanced.
- Find the length of a real world wall/room/area
- Align the reference on the canvas with the length by moving it around the canvas
- The
Scale Referencecan be used to change the length of the line - The
Angle Referencecan be used to rotate the line
- The
- Then input the real world length (in metres) within the
Real-Life Length (metres)input field - Select
Set Referencebutton.
Seating Area, where the seats will be.- Each area is an enclosed space so will only check the social distancing for the seats within the area.
Exclusion Area, where seats aren't allowed to be.Set Seat Area, once the seating areas are where you want them be they need to be 'set' so that its easier to add the seats.Unset seat area, if there's a problem with the seating areas you can unset them and change them.Delete Area, can delete a seating area or exclusion area if its not needed.
- Add the number of the seats required using the
Add More Seats. - Can resize the seats with the
Size of Seatsslider. Delete seat, can delete un-needed seats.
-
Enter the distance that you would like the seats to be apart (minimum)
-
When attempting to save the system will alert you to any errors, this includes:
- Seats overlapping
- Seat not in a seating area
- Seating area overlap with an Exclusion area
- Where seats are too close together
-
If the reference length is not set a warning will appear informing the user of this.
- Ensure that you have the correct institution selected.
- Select the
Book a Seatlink in the top navigation bar - If you do not have a room selected it will show a list of rooms below
- The rooms floorplan will then be displayed
- The default colour are
Red:Not AvailableGreen:Available
- Colour scheme can be changed through
Colour Options - Select the seat to book
- A
Book Seatshould appear, select it - System will notify the user about the status: Successful/Error
- Input the date
- Select the Institution
- Select the Room
- Input the start time of the booking
- Click
Submit
- The system will give you a list of emails to contact
- The system should also open your local email client and create a generic email informing the users of the incident