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

MarijnvSprundel/info-website

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Lokale ontwikkeling

  • Clone deze repository
  • Voer de volgende commando's in de root van die repo uit:
    • composer install
    • npm install
    • Maak en configureer de .env file, let daarbij op:
      • (Alleen docenten) Vul AMO_CLIENT_ID en AMO_CLIENT_SECRET met de juiste (geheime) app geheimen
      • Studenten kunnen simpelweg tijdelijk ->middleware('auth') in de routes/web.php in het commentaar zetten
    • php artisan storage:link
    • php artisan migrate --seed
    • npm run watch
    • php artisan serve

De website is nu beschikbaar voor

  • Prospects: https://info.curio.codes/
  • Studenten die websites maken: https://info.curio.codes/test
  • Docenten: https://info.curio.codes/beheer

Productie

  • 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:

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.4%
  • PHP 37.3%
  • CSS 6.6%
  • SCSS 1.5%
  • JavaScript 0.5%
  • HTML 0.4%
  • Shell 0.3%