Skip to content
forked from meedan/alegre

A text and media analysis service for Meedan Check, a collaborative media annotation platform

License

Notifications You must be signed in to change notification settings

sparkingdark/alegre

 
 

Repository files navigation

alegre

A media analysis service. Part of the Check platform. Refer to the main repository for quick start instructions.

Development

The Alegre API Swagger UI unfortunately does not support sending body payloads to GET methods. To test those API methods, you can still fill in your arguments, and click "Execute" - Swagger will fail, but show you a curl command that you can use in your console.

Testing

  • docker-compose -f docker-compose.yml -f docker-test.yml up --abort-on-container-exit
  • Wait for the logs to settle, then in a different console:
  • docker-compose exec alegre make test
  • docker-compose exec alegre coverage report

To test individual modules:

  • docker-compose exec alegre bash
  • python manage.py test -p test_similarity.py

Troubleshooting

  • If you're having trouble starting Elasticsearch on macOS, with the error container_name exited with code 137, you will need to adjust your Docker settings, as per https://www.petefreitag.com/item/848.cfm

About

A text and media analysis service for Meedan Check, a collaborative media annotation platform

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.9%
  • Other 2.1%