Skip to content

mblockelet/fioi-task-importer

 
 

Repository files navigation

fioi-task-importer

This repository provides a small tool to import a svn task into a database, through the following steps:

  • user provides a svn url (with revision) and his credentials in an html form
  • a php script checks out the revision
  • then pushes it to a public S3 url with temporary name, and removes them from the local drive
  • serves the S3 files in an iframe
  • fetches all resources through Bebras installation API
  • calls another php script with the resources, installing the resources in the database and private S3
  • removes the files from S3

Requirement

You must have a database in the same format as the one of (TaskPlatform)[https://github.com/France-ioi/TaskPlatform]. You must also set up two AWS S3 buckets. You also need bower and composer.

Installation

Clone this repository and run composer install then bower install.

About

svn -> s3 -> iframe -> API -> sql+s3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 84.1%
  • JavaScript 15.9%