Skip to content

pvilaca/memote-webservice

 
 

Repository files navigation

Memote Webservice

master Branch master Build Status master Codecov master Requirements Status

devel Branch devel Build Status devel Codecov devel Requirements Status

Post-cookiecutter steps

Perform the following steps after creating a new service from the cookiecutter.

  • Create the following environment variables in Travis CI:
    • ENVIRONMENT: testing
    • FLASK_APP: src/memote_webservice/wsgi.py
    • SLACK_ACCOUNT: Workspace name, e.g. biosustain
    • SLACK_TOKEN: Find it here
    • SLACK_CHANNEL: Normally #decaf-notifications
    • DOCKER_PASSWORD: For push access to Docker Hub
  • Remove this section from the README.

Development

Run make setup first when initializing the project for the first time. Type make to see all commands.

Environment

Specify environment variables in a .env file. See docker-compose.yml for the possible variables and their default values.

  • Set ENVIRONMENT to either
    • development,
    • testing, or
    • production.
  • SECRET_KEY Flask secret key. Will be randomly generated in development and testing environments.
  • SENTRY_DSN DSN for reporting exceptions to Sentry.
  • ALLOWED_ORIGINS: Comma-seperated list of CORS allowed origins.

About

Run memote in a microservice with a frontend that allows you to upload and test models.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 81.7%
  • Makefile 12.4%
  • Shell 5.9%