Web services for the TrendMiner project
We want to build a basic web interface for project TrendMiner. This interface should be similar to the Accurat Showcase which has been implemented as a minimal Django project. Its source code is available from GitHub.
A basic front page view should be available. Users should be able to login providing username and password. After successful authentication, users get redirected to a single "action" view that allows:
- to upload a ZIP file;
- which is then processed using an external script (
perl/om-xml.pl
); - and whose output is returned to the user.
Additional views will be added at a later time.
- Clone this GitHub repository;
- Create minimal Django project for TrendMiner, following the Accurat showcase code;
- Implement basic "action" view without calling external script;
- Connect external script using
subprocess.call
(seedjango
folder containing original MUSING code); - Retrieve script output and render it into the page template of the "action" view.
As always, stick to PEP8 guidelines and follow Django's documentation for its template language. Due to privacy concerns, the sample ZIP file for testing perl/om-xml.pl
is only available via email.