Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
/ uet-receive Public archive

Develop system: Receive Results For UET Examination

Notifications You must be signed in to change notification settings

tuantmtb/uet-receive

Repository files navigation

UET Receive

Develop website : Receive results from UET examination

Version

Status: Alpha version

Start date: 26/12/2016

Submission date: 28/12/2016

Structure

Resource doc: /uet-resource-doc

Document

Detailed guides in /uet-resource-doc older.

Design database at /uet-resource-doc/database/Design.png

Technology Overview

Bootstrap

Jquery

Laravel 5

Requirement system

PHP 5.4 above

Support crontab: readmore: http://stackoverflow.com/questions/37265929/laravel-task-scheduling-set-to-run-every-minute-but-it-run-only-once

Deployment

  1. Create database

  2. Config file .env

     - Config database
     - Mailer account
     - Generate key
     $ php artisan key:generate
    
  3. Install

Install manual

    $ composer update
    $ composer install
    $ php artisan key:generate
    $ php artisan migrate --seed
    $ php artisan serve
      Run job on server, readmore: http://stackoverflow.com/questions/37265929/laravel-task-scheduling-set-to-run-every-minute-but-it-run-only-once
    
    - Open browser localhost:8080
  1. Setup queue

Set the QUEUE_DRIVER in your .env, config/queue.php file:

    QUEUE_DRIVER=database
    $ php artisan queue:table
    $ php artisan migrate
    $ php artisan queue:listen
    $ composer dump
    $ composer dump-autoload
    $ php artisan config:cache
  1. set queue always

     For ubuntu
     $ nohup php artisan queue:work --daemon &
    

Development

Step 1: Install Composer

        $ composer update
        $ composer install

Step 2: Database & migration

        Tạo database uet-thesis
        Copy .env.example > .env, cấu hình lại DB, MAIL, google captcha 
        $ php artisan migrate --seed
        
        Generate ide-helper: 
        $ php artisan ide-helper:models

Step 3: Configurations

        $ php artisan key:generate

Step 4: Serve

        $ php artisan serve

Step 5: Start job

        $ php artisan schedule:run >> /dev/null 2>&1

Common problem

  1. Can not seed migrate: edit ".env": set CACHE_DRIVER=array $ php artisan config:cache $ php artisan migrate:refresh --seed

         $ composer dump-autoload
         $ php artisan db:seed hoặc $ php artisan migrate:refresh --seed
    
  2. If form can not post data: Add {{Form::token()}} in form view

PhpStorm plugin instructions

        Settings > Plugins > Browse repositories... > Find 'Laravel plugin' > Install 
        Settings > Languages and Frameworks > Php > Laravel > 'Enable plugin for this project'

TODO

Update score student
Analytic result score
Recommend subject

Stack

Laravel
Mysql
Redis (cache query)

Developers

Tran Minh Tuan - UET - tuantmtb@gmail.com - +84.976.200.663

Nguyen Van Nhat - UET - nguyenvannhat152@gmail.com - +84.166.3077313

About

Develop system: Receive Results For UET Examination

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published