Skip to content

samreachyan/project-datn

Repository files navigation

Installation Document

  • Contact Facebook for installation but try to read guide first.
  • Email: samreachyan@gmail.com
  • Open repos on GITHUB
  • Laravel 8
  • XAMPP (Recommandation)
  • If you're on Ubuntu, require (MySql Server, Apache2, Composer 2, install library vendor of laravel compose install)
  • Internet: Using reCaptcha v3 and Google API. If it's slow or error something, let's check on app\Http\Controllers\Application\AccountController.php link 151 change $disableCaptcha = true to disable this feature (reCaptcha).

Setup environment for laravel on .env

  • APP_URL= $domain/ip-khi-chay

  • Database:

    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=course
    DB_USERNAME=root
    DB_PASSWORD=
    
  • OAuth :

    Note for that

    • Socialite Login, you need to configure with APP_CALLBACK_URL with your domain name or locally domain name.

    • Facebook
    FACEBOOK_APP_ID=....
    FACEBOOK_APP_SECRET=...
    FACEBOOK_APP_CALLBACK_URL=http://localhost:8000/callback/facebook
    
    • Google
    GOOGLE_APP_ID=...
    GOOGLE_APP_SECRET=...
    GOOGLE_APP_CALLBACK_URL=http://127.0.0.1:8000/callback/google
    
    • Github
    GITHUB_APP_ID=...
    GITHUB_APP_SECRET=...
    GITHUB_APP_CALLBACK_URL=http://localhost:8000/callback/github
    
    • Google Drive Setup
    FILESYSTEM_CLOUD=google
    GOOGLE_DRIVE_CLIENT_ID=..
    GOOGLE_DRIVE_CLIENT_SECRET=...
    GOOGLE_DRIVE_REFRESH_TOKEN=...
    GOOGLE_DRIVE_FOLDER_ID=..
    
    • Google Drive API (Get Token of OAuth2.0) checkout this document: Viblo or Github read how to setup token and root folder on Google drive.

Server

  • Recommand setup running in VirtualHost guide by this post.

  • Start server

    php artisan serve

Initial Command

  • Install all package (download libraries):
composer update
  • Migrate database:
php artisan migrate
  • Seed database:
php artisan db:seed
  • Auto create 3 accounts username and password:
    - username: admin , password: admin
    - username: teacher , password: teacher
    - usernmae: student , password: student
  • Start queue service for windows on XAMPP if you're ubuntu don't need:
php artisan queue:work

Note

  • Run Queue while running server php artisan serve

  • Link public storage to public folder (Mean if you clone project doesn't link public folder yet). So you must link this first.
php artisan storage:link

Report documents

I add some important documents for you to learn and research this project work including Final report, slide, template, usecases image (astah file). Checkout: Report_documents.zip

Preview project

  • Home Page Web

  • Course Screen ViewCourse1

  • Teacher Screen Teacher1

  • Student Screen NewNotification

  • Admin Screen adminKhoaHoc adminKhoaHocDetail

  • API API Login

LICENSES

  • Licenses for Open Source Development
  • You may use free licenses solely for developing non-commercial open source projects.

Good luck ❤️

About

Project Final Thesis

Resources

Stars

Watchers

Forks

Languages