Locks a GitHub Classroom by removing all students from their team. It keeps track of the students that were removed to allow restoring them later.
This helps us restrict access when students leave our school.
- Clone this repository
- Run
composer install
- Copy
.env.example
to.env
and fill in the values (see #Access Tokens for more info) - Run
php artisan key:generate
npm run dev
to run vite and compile the frontend (watching for changes)php artisan serve
to run the server- Open
http://localhost:8000
in your browser - Run
php artisan migrate
to create the database
- Get a Fine-grained access token from GitHub here.
- Select the
curio-summatief
organization - Give it the following permissions:
- Organization permissions:
- Members: read and write
- (Optional) Repository permissions:
- Contents: read
- Organization permissions:
- Get an OpenAI API key here.
- Copy the key and paste it in the
.env
file asOPENAI_API_KEY
. - Make sure you've prepaid some money to your OpenAI account.
To test locally it can be useful to add SD_SSL_VERIFYPEER=no
to your .env file. This disables SSL verification, which is not recommended for production.