Skip to content

Latest commit

 

History

History
executable file
·
37 lines (30 loc) · 945 Bytes

README.md

File metadata and controls

executable file
·
37 lines (30 loc) · 945 Bytes

Requirements

  • PHP 7.4 or Higher
  • PHP Extensions - BCMath, Ctype, Fileinfo, JSON, Mbstring, OpenSSL, PDO, Tokenizer, XML

Installation

  1. Make sure the server root is bookmate/public
  2. Create a database & user and add them in .env file on project root (also set APP_DEBUG=false).
  3. Run composer update & composer install --optimize-autoloader --no-dev
  4. Run php artisan migrate:fresh
  5. Run php artisan config:cache
  6. Run php artisan route:cache
  7. Run php artisan view:cache
  8. Run php artisan storage:link
  9. Run npm update
  10. Run npm run production
  11. Chill out

Model Relations

  • Challenge
    • Discussion (1)
      • id
      • discussable_type
      • discussable_id
      • Comment (n)
        • id
        • user_id
        • text
        • Comment (n) (replies)
          • id
          • comment_id
          • user_id
          • text