GithubHelp home page GithubHelp logo

linda-carlstad / tentahub.se-old- Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 0.0 2.8 MB

Exam repository for Swedish university students.

Home Page: https://tentahub.lindacarlstad.se/

License: GNU General Public License v3.0

PHP 52.71% Shell 0.29% Blade 47.01%
laravel exams university karlstad-university

tentahub.se-old-'s Introduction

Linda Carlstad

Description

TBA

Installation

- Unix

Follow the official Laravel documentation for a detailed walkthrough using any Unix system, like macOS or any distribution on Linux.

Laravel documentation

- macOS

Follow this simple guide to run a Laravel (8.x) project on your macOS based computer.

Felix Wetell's guide

- Windows

Follow this simple guide to run a Laravel (8.x) project on your Windows based computer.

Felix Wetell's guide

When steps above are done, do these steps to get going.

Fetch the project to your machine, either using the GUI or the command below.

git clone https://github.com/Linda-Carlstad/tentahub.se.git

Locate the project on your machine via the terminal and follow the steps below.

Install all composer dependencies:

composer update

Install all NPM dependencies:

npm install

Copy the example envirment file:

# macOs
cp .env.example .env

# Windows
copy .env.example .env

Generate application key.

php artisan key:generate

Create a database in MySQL on your computer.

Edit the .env file with your database credidentials. Here is an example:

DB_PORT=3306
DB_DATABASE=tentahub
DB_USERNAME=root
DB_PASSWORD=root

Create and seed database:

php artisan migrate:refresh --seed

Run this to generate CSS and JS files:

(Does not work properly at the moment)

npm run dev

Run the local development server:

php artisan serve

Usage

TBA

Contributing

- Issues

  • Screenshot the problem
  • Open a new issue
  • Give it a meaningful title
  • Describe the issue clearly
  • Upload the screenshot
  • Add useful labels
  • Submit issue

- Coding

  • See the issue list
  • Assign yourself to an issue
  • Open a new branch
  • Create your beautiful code
  • Create a pull request

Software

Recommended apps to get going fast:

  • Atom/Sublime/PHPStorm
  • MAMP
  • Sequal Pro
  • Google Chrome/Mozilla FireFox
  • Sketch (design tool)

Credits

Special thanks to Linda Carlstad It-committee 2019/2020 for creating this website.

tentahub.se-old-'s People

Contributors

dependabot[bot] avatar felixwetell avatar hortlund avatar lukaslen avatar mikaelamalstrom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tentahub.se-old-'s Issues

Snygg startsida

Startsidan behöver uppdateras. Den ska fånga anvädarens uppmärksamhet, men samtidigt vara informativ.

Den ska visa vad som kan göras i applikationen, hur det görs och målet med appliaktionen.

Handle admins as super

CRUD structure for admin model

  • Create admins
  • Read admins (show)
  • Update admins (admins can do it too)
  • Delete admins

File Upload & Handling

Whats needed:

  • File controller to handle stuff like storage and file links.
  • A way to create a post in the database for each file that is being uploaded with belonging file name, to then show in the website.
  • Being able to download files.
  • Create temporary links to files.
  • Structrue Controllers, routes and models more correclty
  • Make exams store in different places depending on which portal it was upploaded from.
  • Associations folders in storage

Dark mode

User should be able to choose between dark/light mode. And the website should use correct mode according to client system settings if possible.

CRUD courses

Can be modified with role: Moderator (or higher)

  • Create
  • Read
  • Update
  • Delete

Design flash messages

Flash messages should have a good looking design with humanized messages.
They should make the user happy and feel good about themselves.

  • User-friendly messages
  • Nice looking design
  • Icons to increase understanding

Message proposal:

Rewrite user controller

User profile should be on show and not in index. Moderators and up should be able to see users in varying variety.

Search function

Because the app will contain tons of data. Almost every model needs to be searchable.
Not everyone should be able to search for any thing.

Everyone:

  • Exams
  • Universities
  • Associations
  • Courses

Moderators:

  • Other moderators in the same association

Admins:

  • Moderators in association
  • Other admins at the same university

Super:

  • Everything

Create policies for each model

We need to control the access for different kinds of users.

Models that should use policies:

  • University
  • Association
  • User
  • Courses
  • Exams

Email service

We need an emailing service for the app to use, like SendGrid or such.

Handle moderators as admin or super

CRUD structure for moderator model

  • Create moderators
  • Read moderators (show)
  • Update moderator (moderators can do it too)
  • Delete moderators

Confirmation of new user

When creating a new user, a confirmation mail should be sent out to verify the user. This will also force the user to enter a password for the account.

  • Mail new user on creation
  • Confirmation view

CRUD associations

Can be modified with role: Admin (or higher)

  • Create
  • Read
  • Update
  • Delete

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.