Skip to content

Informatie website voor SD die websites gemaakt door studenten laat zien. Docenten uploaden de websites als zip.

License

Notifications You must be signed in to change notification settings

stevenboeren/info-website

 
 

Repository files navigation

Software Developer Info

Willekeurig gekozen website gemaakt door student: Screenshot van willekeurige website (Verouderd screenshot)

Beheer paneel waar docenten sites uploaden: Screenshot van docent beher paneel (Verouderd screenshot)

Getting Started

Local development

  • Clone this repository
  • Run the following commands in the root of that repo:
    • composer install
    • npm install
    • Create and configure the .env file, note:
      • (Teachers only) Fill AMO_CLIENT_ID and AMO_CLIENT_SECRET with the correct (secret) app secrets
      • Students can simply temporarily put ->middleware('auth') in the routes/web.php in the comment
    • php artisan storage:link
    • php artisan migrate --seed
    • npm runwatch
    • php artisan serve

The website is now available for

  • Prospects: https://info.curio.codes/
  • Students who create websites: https://info.curio.codes/test
  • Teachers: https://info.curio.codes/beheer

Production

  • sudo chown -R www-data:www-data /path/to/this/repo/root
  • Fill TESTER_ACCESS_USER and TESTER_ACCESS_PASSWORD with any combination to protect the test-page from bots/outsiders. Optionally use TESTER_REMOVE_AFTER in env to change the 5 minute test site lifetime default.
  • To run the queue that removes tester sites:
    • Locally for development use: php artisan queue:work --stop-when-empty to run the queue manually (wait 5 minutes after adding test site)
    • On production set this CRON task: * * * * * cd /path-to-your-project && php artisan queue:work --stop-when-empty >> /dev/null 2>&1 (NOTE: untested, but should work...)

Notes:

nothing here yet

cURL error 60: SSL certificate expired

To test locally it can be useful to change line 28 in /vendor/studiokaa/amoclient/src/AmoclientController.php to $http = new \GuzzleHttp\Client(['curl' => [CURLOPT_SSL_VERIFYPEER => false]]);. On production you should just enable HTTPS.

Testing

The directory tests/TestData/ contains some websites that can be used to test.

About

Informatie website voor SD die websites gemaakt door studenten laat zien. Docenten uploaden de websites als zip.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Blade 53.5%
  • PHP 37.3%
  • CSS 6.6%
  • SCSS 1.5%
  • HTML 0.4%
  • JavaScript 0.4%
  • Shell 0.3%