Skip to content

apalmisano82/Iraq_mortar

Repository files navigation

Iraq_mortar

This application has three files:

  • createTasks.py: for creating the application in PyBossa, and fill it with some tasks.
  • template.html: the view for every task and deal with the data of the answers.
  • tutorial.html: a simple tutorial for the volunteers.

alt screenshot

Funded Partners

LMU logo A. von Humboldt logo

UCL

Testing the application

You need to install the pybossa-client first (use a virtualenv and this needs boto):

    $ pip install -r requirements.txt
    $ cp s3_settings.py.tmpl s3_settings.py

In the settings file, just set the root bucket name, your access key and secret key.

Then, you can follow the next steps:

  • Edit the s3_settings.py file with your S3 credentials
  • Create an account in PyBossa
  • Copy under your account profile your API-KEY
  • Run python createTasks.py -u http://crowdcrafting.org -k API-KEY
  • Open with your browser the Applications section and choose the FlickrPerson app. This will open the presenter for this demo application.

Documentation

We recommend that you read the section: Build with PyBossa and follow the step by step tutorial.

Adding pictures from a folder in an S3 bucket

This application supports public S3 buckets. Adding pictures/photos from a folder in a S3 bucket is as simple as running the following commands.

    $ python createTasks.py -s server -k api-key -c -x -b "folder/in/s3/"

To add all images in the root folder run:

    $ python createTasks.py -s server -k api-key -c -x -b "/"

To add all images in a subfolder:

    $ python createTasks.py -s server -k api-key -c -x -b "micropasts-palstaves"

If the application had already some tasks, the previous command will add pictures in the S3 folder to the app, so you can easily add more tasks when they are completed in your PyBossa application.

By default this application only supports PNG and JPG pictures, but you can add more extensions if you want by editing the s3_settings.py

NOTE: This application uses the pybossa-client in order to simplify the development of the application and its usage. Check the documentation.

LICENSE

Please, see the COPYING file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages