Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

alexhambley/grp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

G52GRP - Group 35

Competencies for Food Graduate Careers

Members

  • Alexander Hambley Jones (Leader)

  • Alexander Ferrandiz Hagbarth

  • Hangjian Yuan

  • Lee Ryan Taylor

  • Victor Walker

  • Peter Blanchfield (Supervisor)

  • Emma Weston (Sponsor)

Documentation

Trello

(To view you must have been invited)

Board Link
Planning https://trello.com/b/W1guhkC1
Coding https://trello.com/b/vjlo6bSZ
TDD https://trello.com/b/AQ639kJH

Dropbox

https://www.dropbox.com/sh/62o9vtykx57vlge/AABwtHlL5VeTuGXVegT_d3iXa?dl=0

Features

  • Comprehensive themes
  • User-friendly interface
  • Lightweight architecture

Useful for...

  • Graduates of Food Science
  • Undergraduates of Food Science
  • Lecturers in Food Science

Installation

If you are installing this software, please read the entire readme, and not just this installation section. ⚠️

  1. Install XAMPP or set up a LAMP stack.

  2. Clone the git repository.

  • Save this to your htdocs folder. (The installer should tell you where this is)
  1. Make sure that localhost is running.
  • You can do this by either running XAMPP, and then entering your public IP (or typing in localhost).
  • If you are running a LAMP stack, then browse to your server's public IP.
  1. If you are running XAMPP, then you should be greeted with a webpage similar to this:

localhost

  1. Browse to PHPMyAdmin (your-public-ip/phpmyadmin) and create a new database called g52grp.
  • Please note that the database must be named g52grp:

db1

  • Your PHPMyAdmin may be password protected. Log in, and we will deal with that later.
  1. Import the SQL file '/grp/src/data/foodgraduates.sql'.

db2

  1. If your PHPMyAdmin is password protected, then you will have to add these credentials to the db.php and credentials.php files.
  • There is not much to change, just add your username and password to these files.
  • They should be similar to this afterwards:
  • credentials.php
<?php
    $db_host = 'localhost';
    $db_username = 'YOUR-USERNAME';
    $db_password = 'YOUR-PASSWORD';
    $db_database = 'g52grp';
?>
  • db.php
<?php
$conn = new mysqli("localhost", "YOUR-USERNAME", "YOUR-PASSWORD", "g52grp");
if ($conn->connect_errno != 0)
  die('Failed to connect to the database.');
  1. You will now need to set up a new admin user in order to edit the database.
  • We first need to create a hash of your chosen password.
  • Create a new php file with the following php code inside:
<?php
echo hash('sha256', 'YOUR PASSWORD HERE');
?>
  • Save this as password.php and browse to it by the following: 'your-public-ip/grp/src/password.php'

  • Copy this result.

  • In PHPMyAdmin, go to the users table on the left hand side, and click Browse. You should have a page like below:

db3

  • Edit the following SQL command to contain the attributes that you want. Remember to use the hash that you generated for the password.

    INSERT INTO 'users' (Name, Password, Phone, Email, Birthday)
    VALUES ("USERNAME", "PASSWORD", "PHONE NUMBER", "EMAIL", "BIRTHDAY")
  • Press the Edit Inline link and paste your SQL command in, pressing 'Go'.

  1. Make sure you delete the password.php file.

  2. That's it! You should be all set up and able to log in to the admin portion of the site.

Using the Site (Desktop View)

  1. Home Page:
  • This page should look like below. This page gives an overview of all the roles, themes and elements that are present in the database.
  • This page is really useful if you already know what roles, themes or elements you want to see are.
  • To see the roles, themes or elements, just press the blue Show / Hide button.
  • We can see that a search bar on the top right. This lets you search for anything in the database. This includes alternative names for the roles.

index

  • After pressing the Show / Hide button, we can see a list of all roles, themes and elements.

index2

  • By pressing See More, we can see more information about that particular item in the database.

index3

  1. Finding a Career:
  • This page is intended for penultimate and final year students. We developed this page taking into account feedback from current students.
  • The idea is that you choose three themes that you feel that you are particularly proficient at.

student

  • Then you are greeted with two or three sets of elements related to your chosen themes.
  • You then choose the associated elements that you feel that you are proficient at.

student2

  • The site will return a list of results that we feel you may be particularly geared towards. You can click on these to get more information.

student3

student4

  • You can see even more information by clicking the See More button.

  • You're then given a detailed page - the key thing here is that themes and elements may be highlighted in green or red.

    • Green themes and elements are those that you have selected in the process of getting to this page.
    • Red themes and elements are those that you have not selected, and may wish to consider if you are interested in this career in the future.

student5

  • Or you can view a poster by pressing View Poster

student6

  1. Admin Functionality:
  • These pages are intended for the admin of the site to easily be able to add, update or delete role, themes and elements.

admin

  • The index page allows you to easily and quickly manage the database.

admin2

  • Below is what you will see if you were to add something to the database:

admin3 admin4 admin5

  • Below is what you will see if you were to update something in the database:

admin6 admin7 admin7

  • Below is what you will see if you were to delete something in the database.
  • Please note the danger of deleting something in the database. ⚠️
  • You cannot undo this action, and you will have to add the items back into the database manually, or by using the tools shown above.

admin8

  • You can also add new users to the database, also making them admins.
    • Please note that any user you add will also be able to add, update and remove elements, along with adding new admins. ⚠️

admin9

  • Forgotten Password Functionality:
    • It is also possible to recover your account in the case of a forgotten password.
    • Please keep in mind that anyone with direct access to the SQL database will be able to recover your account as well, therefore it is a good idea to secure this database. ⚠️

admin7 admin8

  1. Searching
  • Present on every page is the navbar and the search bar.
  • This search bar allows you to search for roles, themes and elements.

search

search2

Using the Site (Mobile View)

This toolkit was designed to be responsive, and so it is as equally usable on mobile as it is on a laptop.

  1. Home Page:
  • Just like on the desktop, this page gives an overview of the roles, themes and elements that are present in the database.

mobile

  • To see the roles, themes or elements, just press the blue Show / Hide button.

mobile

  1. Finding a Career:

mobile

mobile

mobile

  1. Admin Functionality:

mobile

mobile

  • Forgotten password functionality also still exists:

mobile

  1. Searching:
  • By pressing on the hamburger menu (top right of the screen), we can open up the navbar, revealing a search bar. This functions just as well as the search bar on the desktop version of the site.

mobile

About

G52GRP Repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •