Coder Social home page Coder Social logo

baligs / basic-lms-laravel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ci-oc/basic-lms-laravel

0.0 0.0 0.0 6.5 MB

Basic Laravel Learning Management System

License: GNU General Public License v3.0

Shell 0.10% PHP 47.78% Vue 0.09% Blade 52.03%

basic-lms-laravel's Introduction

Basic Learning Management System (BasicLMS)

The BasicLMS is a pure educational Learning Management System. It does not serve all purposes of an LMS. However, it provides a proof of concept of what could be implemeneted and integrated. Works on Unix-like operating systems.

We would like to extend our thanks to the following APIs and their developers.

When you sign in using the superuser account (see Database Configuration) , you will see a clickable note that forwards you to security questions web page.

Kb12gMs

After you click it, the following three security questions will appear:

L7nyoNv
๐Ÿ’ก
The answers are: dummy1, dummy2, and dummy3. They are editable through the panel.

Follow the beneath steps:

  1. Navigate to "User Management"

  2. Click "Roles"

  3. "Edit" any of the shown roles to modify/add their permissions

3XMsmfF

We recommend:

  1. All "Security Privileges" for the "superuser" role.

  2. All "High Educational Privileges" for the "instructor" role along with "edit-profile" from "Other Privileges".

  3. All "Low Education Privileges" for the "student" role along with "edit-profile" from "Other Privileges".

  4. "view-course", "view-announcement", and "edit-profile" for the "guest" role.

However, you can design your own role/permission combination.

NU9ynao

In your terminal,

  • Clone: git clone https://github.com/ci-oc/basic-lms-laravel.git

  • Navigate: cd basic-lms-laravel

  • Update your depencencies as they are specified in composer.json: composer update

  • Composer re-reads the composer.json file to build up the list of files to autoload: composer dump-autoload

  • Create a cache file for faster configuration loading: php artisan config:cache

  • Flush the application cache: php artisan config:clear

  • cat .env.example >> .env

  • vim .env

Then configure your database credentials in the following part:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=DATABASE_NAME
DB_USERNAME=MYSQL_USERNAME # default is root
DB_PASSWORD=MYSQL_PASSWORD

Also make sure you have the following configuration in your .env file.

BROADCAST_DRIVER=log
CACHE_DRIVER=array
SESSION_DRIVER=file
QUEUE_DRIVER=database

In order to seed database with accounts. Please run the following command: - php artisan migrate --seed

If you want to disable seeding for specific table. Please open the following file. - vim PATH/TO/basic-lms-laravel/database/seeds/DatabaseSeeder.php

And then you can comment by # any of the following seeders.

๐Ÿ’ก
But note that you can only comment/uncomment instructors and/or students seeders, because superuser accounts are only created through seeding.

Example:

$this->call(PermissionTableSeeder::class);
$this->call(JudgeOptionsSeeder::class);
$this->call(RoleTableSeeder::class);
$this->call(SuperUserTableSeeder::class);
$this->call(SecurityURLSeeder::class);
# $this->call(InstructorsTableSeeder::class);
# $this->call(StudentsTableSeeder::class);
$this->call(CodingLanguagesSeeder::class);
php artisan key:generate

Please go to your DBMS and view users table. First two records are the superusers accounts, next 20 are instructors, the 20 after them are students.

  • Default password: "secret" (without quotes).

In order to host it on local area network, run the following command:

  • ifconfig | grep inet

then replace [IP] with your IP.

  • php artisan serve --host=[IP] --port=8000

To host it on local machine:

  • php artisan serve

And run the following command in order to run Online Judge Queue and Mails Queue (with priority to judge queue first)

  • php artisan queue:listen --queue=remark,emails

To activate plagiarism detection using MOSS run:

  • php artisan remark

If you discover a security vulnerability within BasicLMS, please post an issue. All security vulnerabilities will be addressd.

In case of receiving the following exception BadMethodCallException. Please run this two commands:

  • php artisan config:cache

  • php artisan config:clear

basic-lms-laravel's People

Contributors

ndrwnaguib avatar minajacoob avatar eyadmshokry avatar yassenhatem avatar dependabot[bot] avatar

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.