From a3a054c3930572850294df42d42675ec410bec5c Mon Sep 17 00:00:00 2001 From: Hironsan Date: Wed, 21 Apr 2021 11:45:23 +0900 Subject: [PATCH] Rename app dir to backend for pip installation --- .coveragerc | 18 ++++++++-------- .dockerignore | 20 +++++++++--------- .flake8 | 2 +- Dockerfile | 4 ++-- MANIFEST.in | 18 ++++++++-------- {app => backend}/.dockerignore | 0 {app => backend}/Dockerfile.dev | 0 {app => backend}/Dockerfile.prod | 6 +++--- {app => backend}/__init__.py | 0 {app => backend}/api/__init__.py | 0 {app => backend}/api/admin.py | 0 {app => backend}/api/apps.py | 0 {app => backend}/api/exceptions.py | 0 {app => backend}/api/filters.py | 0 .../api/management}/__init__.py | 0 .../api/management/commands}/__init__.py | 0 .../api/management/commands/create_admin.py | 0 .../commands/create_role_mapping.py | 0 .../api/management/commands/create_roles.py | 0 .../api/management/commands/wait_for_db.py | 0 {app => backend}/api/managers.py | 0 .../api/migrations/0001_initial.py | 0 .../api/migrations/0002_comment.py | 0 ...002_project_single_class_classification.py | 0 .../api/migrations/0002_speech2text.py | 0 .../migrations/0003_merge_20200612_0205.py | 0 .../migrations/0004_merge_20210114_1117.py | 0 .../api/migrations/0005_auto_20210120_1730.py | 0 .../api/migrations/0005_auto_20210201_0603.py | 0 .../migrations/0006_merge_20210221_1258.py | 0 .../api/migrations/0007_auto_20210301_0302.py | 0 .../api/migrations/0008_auto_20210302_1013.py | 0 .../api/migrations/0009_auto_20210411_2330.py | 0 {app => backend}/api/migrations/0009_tag.py | 0 .../api/migrations/0010_auto_20210413_0249.py | 0 ..._merge_0009_tag_0010_auto_20210413_0249.py | 0 .../api/migrations}/__init__.py | 0 {app => backend}/api/models.py | 0 {app => backend}/api/permissions.py | 0 {app => backend}/api/serializers.py | 0 {app => backend}/api/tasks.py | 0 .../api/tests}/__init__.py | 0 .../api/tests/data/classification.jsonl | 0 {app => backend}/api/tests/data/example.csv | 0 .../api/tests/data/example.invalid.2.csv | 0 .../api/tests/data/example.invalid.2.xlsx | Bin {app => backend}/api/tests/data/example.jsonl | 0 {app => backend}/api/tests/data/example.txt | 0 .../api/tests/data/example.utf16.csv | Bin {app => backend}/api/tests/data/example.xlsx | Bin .../example_column_and_row_not_matching.csv | 0 .../example_column_and_row_not_matching.xlsx | Bin .../api/tests/data/example_fasttext.txt | 0 ...xample_fasttext_label_tag_without_name.txt | 0 .../data/example_fasttext_without_text.txt | 0 .../api/tests/data/example_one_column.csv | 0 .../api/tests/data/example_one_column.xlsx | Bin .../data/example_one_column_no_header.xlsx | Bin .../data/example_out_of_order_columns.csv | 0 .../api/tests/data/invalid_labels.json | 0 .../api/tests/data/labeling.conll | 0 .../api/tests/data/labeling.invalid.conll | 0 .../api/tests/data/labeling.jsonl | 0 .../api/tests/data/labeling.trailing.conll | 0 {app => backend}/api/tests/data/seq2seq.jsonl | 0 .../api/tests/data/valid_labels.json | 0 {app => backend}/api/tests/test_api.py | 0 {app => backend}/api/tests/test_config.py | 0 {app => backend}/api/tests/test_models.py | 0 {app => backend}/api/tests/test_utils.py | 0 {app => backend}/api/tests/test_views.py | 0 .../api/tests/upload}/__init__.py | 0 .../api/tests/upload/test_conll.py | 0 {app => backend}/api/tests/upload/test_csv.py | 0 .../api/tests/upload/test_dataset.py | 0 .../api/tests/upload/test_fasttext.py | 0 .../api/tests/upload/test_utils.py | 0 {app => backend}/api/urls.py | 0 {app => backend}/api/utils.py | 0 {app => backend}/api/views/__init__.py | 0 {app => backend}/api/views/annotation.py | 0 {app => backend}/api/views/auto_labeling.py | 0 {app => backend}/api/views/comment.py | 0 {app => backend}/api/views/document.py | 0 .../api/views/download}/__init__.py | 0 .../api/views/download/catalog.py | 0 {app => backend}/api/views/download/data.py | 0 .../api/views/download/examples.py | 0 .../api/views/download/factory.py | 0 .../api/views/download/repositories.py | 0 .../api/views/download/service.py | 0 {app => backend}/api/views/download/writer.py | 0 {app => backend}/api/views/export_dataset.py | 0 {app => backend}/api/views/health.py | 0 {app => backend}/api/views/import_dataset.py | 0 {app => backend}/api/views/import_export.py | 0 {app => backend}/api/views/label.py | 0 {app => backend}/api/views/project.py | 0 {app => backend}/api/views/role.py | 0 {app => backend}/api/views/statistics.py | 0 {app => backend}/api/views/tag.py | 0 {app => backend}/api/views/task.py | 0 {app => backend}/api/views/upload/__init__.py | 0 {app => backend}/api/views/upload/catalog.py | 0 {app => backend}/api/views/upload/data.py | 0 {app => backend}/api/views/upload/dataset.py | 0 {app => backend}/api/views/upload/examples.py | 0 .../api/views/upload/exception.py | 0 {app => backend}/api/views/upload/factory.py | 0 {app => backend}/api/views/upload/label.py | 0 {app => backend}/api/views/upload/labels.py | 0 {app => backend}/api/views/upload/utils.py | 0 {app => backend}/api/views/user.py | 0 {app => backend}/app/__init__.py | 0 {app => backend}/app/celery.py | 0 {app => backend}/app/settings.py | 8 +++---- {app => backend}/app/urls.py | 0 {app => backend}/app/wsgi.py | 0 .../authentification}/__init__.py | 0 {app => backend}/authentification/admin.py | 0 {app => backend}/authentification/forms.py | 0 {app => backend}/authentification/models.py | 0 .../templates/acc_active_email.html | 0 .../authentification/templates/base_auth.html | 0 .../templates/email_not_set.html | 0 .../templates/password_reset_complete.html | 0 .../templates/password_reset_confirm.html | 0 .../templates/password_reset_done.html | 0 .../templates/password_reset_email.html | 0 .../templates/password_reset_form.html | 0 .../templates/password_reset_subject.txt | 0 .../authentification/templates/signup.html | 0 .../validate_mail_address_complete.html | 0 .../validate_mail_address_invalid.html | 0 .../templatetags/utils_templating.py | 0 .../authentification/tests}/__init__.py | 0 .../authentification/tests/test_activate.py | 0 .../authentification/tests/test_signup.py | 0 .../authentification/tests/test_template.py | 0 {app => backend}/authentification/tokens.py | 0 {app => backend}/authentification/urls.py | 0 {app => backend}/authentification/utils.py | 0 {app => backend}/authentification/views.py | 0 {app => backend}/cli.py | 0 {app => backend}/manage.py | 0 .../server}/__init__.py | 0 {app => backend}/server/apps.py | 0 {app => backend}/server/forms.py | 0 {app => backend}/server/middleware.py | 0 .../server/migrations}/__init__.py | 0 {app => backend}/server/social_auth.py | 0 {app => backend}/server/static/.eslintrc | 0 {app => backend}/server/static/.jsbeautifyrc | 0 {app => backend}/server/static/.pug-lintrc | 0 .../server/static/assets/css/admin.css | 0 .../server/static/assets/css/annotation.css | 0 .../server/static/assets/css/forum.css | 0 .../server/static/assets/images/cat.png | Bin .../static/assets/images/cats/seq2seq.jpg | Bin .../assets/images/cats/sequence_labeling.jpg | Bin .../static/assets/images/cats/speech2text.jpg | Bin .../images/cats/text_classification.jpg | Bin .../server/static/assets/images/logo.png | Bin .../images/named_entity_recognition.png | Bin .../assets/images/sentiment_analysis.png | Bin .../assets/images/sequence_labeling.png | Bin .../static/assets/images/translation.png | Bin .../server/static/components/annotation.pug | 0 .../static/components/annotationMixin.js | 0 .../server/static/components/annotator.vue | 0 .../server/static/components/demo/demo_api.js | 0 .../static/components/demo/demo_data.js | 0 .../server/static/components/directives.js | 0 .../components/document_classification.vue | 0 .../server/static/components/download.pug | 0 .../static/components/download_seq2seq.vue | 0 .../components/download_sequence_labeling.vue | 0 .../components/download_speech2text.vue | 0 .../download_text_classification.vue | 0 .../components/examples/download_seq2seq.csv | 0 .../examples/download_seq2seq.jsonl | 0 .../download_sequence_labeling.json1l | 0 .../examples/download_sequence_labeling.jsonl | 0 .../examples/download_speech2text.jsonl | 0 .../examples/download_text_classification.csv | 0 .../download_text_classification.jsonl | 0 .../components/examples/upload_seq2seq.csv | 0 .../components/examples/upload_seq2seq.jsonl | 0 .../components/examples/upload_seq2seq.txt | 0 .../components/examples/upload_seq2seq.xlsx | Bin .../examples/upload_sequence_labeling.conll | 0 .../examples/upload_sequence_labeling.jsonl | 0 .../examples/upload_sequence_labeling.txt | 0 .../examples/upload_speech2text.jsonl | 0 .../examples/upload_text_classification.csv | 0 .../examples/upload_text_classification.jsonl | 0 .../examples/upload_text_classification.txt | 0 .../examples/upload_text_classification.xlsx | Bin .../server/static/components/filter.js | 0 .../server/static/components/guideline.vue | 0 .../server/static/components/hljsLanguages.js | 0 .../server/static/components/http.js | 0 .../server/static/components/label.vue | 0 .../server/static/components/messages.vue | 0 .../server/static/components/preview.vue | 0 .../server/static/components/projects.vue | 0 .../server/static/components/seq2seq.vue | 0 .../static/components/sequence_labeling.vue | 0 .../server/static/components/speech2text.vue | 0 .../server/static/components/stats.vue | 0 .../server/static/components/upload.pug | 0 .../server/static/components/uploadMixin.js | 0 .../static/components/upload_seq2seq.vue | 0 .../components/upload_sequence_labeling.vue | 0 .../static/components/upload_speech2text.vue | 0 .../components/upload_text_classification.vue | 0 .../server/static/components/users.vue | 0 .../server/static/package-lock.json | 0 {app => backend}/server/static/package.json | 0 .../server/static/pages/dataset.js | 0 .../server/static/pages/demo_named_entity.js | 0 .../static/pages/demo_text_classification.js | 0 .../server/static/pages/demo_translation.js | 0 .../static/pages/document_classification.js | 0 .../server/static/pages/download_seq2seq.js | 0 .../pages/download_sequence_labeling.js | 0 .../static/pages/download_speech2text.js | 0 .../pages/download_text_classification.js | 0 .../server/static/pages/guideline.js | 0 {app => backend}/server/static/pages/index.js | 0 {app => backend}/server/static/pages/label.js | 0 .../server/static/pages/projects.js | 0 .../server/static/pages/seq2seq.js | 0 .../server/static/pages/sequence_labeling.js | 0 .../server/static/pages/speech2text.js | 0 {app => backend}/server/static/pages/stats.js | 0 .../server/static/pages/upload_seq2seq.js | 0 .../static/pages/upload_sequence_labeling.js | 0 .../server/static/pages/upload_speech2text.js | 0 .../pages/upload_text_classification.js | 0 {app => backend}/server/static/pages/users.js | 0 .../static/static/android-icon-144x144.png | Bin .../static/static/android-icon-192x192.png | Bin .../static/static/android-icon-36x36.png | Bin .../static/static/android-icon-48x48.png | Bin .../static/static/android-icon-72x72.png | Bin .../static/static/android-icon-96x96.png | Bin .../static/static/apple-icon-114x114.png | Bin .../static/static/apple-icon-120x120.png | Bin .../static/static/apple-icon-144x144.png | Bin .../static/static/apple-icon-152x152.png | Bin .../static/static/apple-icon-180x180.png | Bin .../server/static/static/apple-icon-57x57.png | Bin .../server/static/static/apple-icon-60x60.png | Bin .../server/static/static/apple-icon-72x72.png | Bin .../server/static/static/apple-icon-76x76.png | Bin .../static/static/apple-icon-precomposed.png | Bin .../server/static/static/apple-icon.png | Bin .../server/static/static/browserconfig.xml | 0 .../server/static/static/favicon-16x16.png | Bin .../server/static/static/favicon-32x32.png | Bin .../server/static/static/favicon-96x96.png | Bin .../server/static/static/favicon.ico | Bin .../server/static/static/manifest.json | 0 .../server/static/static/ms-icon-144x144.png | Bin .../server/static/static/ms-icon-150x150.png | Bin .../server/static/static/ms-icon-310x310.png | Bin .../server/static/static/ms-icon-70x70.png | Bin .../server/static/webpack.config.js | 0 {app => backend}/server/templates/admin.html | 0 .../server/templates/annotation.html | 0 {app => backend}/server/templates/base.html | 0 .../server/templates/dataset.html | 0 {app => backend}/server/templates/index.html | 0 {app => backend}/server/templates/login.html | 0 .../server/templates/projects.html | 0 .../templates/tags/azure_appinsights.html | 0 .../templates/tags/google_analytics.html | 0 backend/server/templatetags/__init__.py | 0 .../server/templatetags/analytics.py | 0 backend/server/tests/__init__.py | 0 ...lAuth.test_fetch_permissions_is_admin.yaml | 0 ...Auth.test_fetch_permissions_not_admin.yaml | 0 ...lAuth.test_fetch_permissions_is_admin.yaml | 0 ...Auth.test_fetch_permissions_not_admin.yaml | 0 ...lAuth.test_fetch_permissions_is_admin.yaml | 0 ...Auth.test_fetch_permissions_not_admin.yaml | 0 ...lAuth.test_fetch_permissions_is_admin.yaml | 0 ...Auth.test_fetch_permissions_not_admin.yaml | 0 .../server/tests/test_middleware.py | 0 .../server/tests/test_social_auth.py | 0 {app => backend}/server/urls.py | 0 {app => backend}/server/views.py | 0 docker-compose.dev.yml | 4 ++-- docker-compose.prod.yml | 10 ++++----- frontend/components/project/FormUpdate.vue | 2 +- setup.py | 3 ++- tools/dev-celery.sh | 2 +- tools/dev-django.sh | 2 +- tools/heroku.sh | 2 +- tools/prod-celery.sh | 2 +- 301 files changed, 52 insertions(+), 51 deletions(-) rename {app => backend}/.dockerignore (100%) rename {app => backend}/Dockerfile.dev (100%) rename {app => backend}/Dockerfile.prod (89%) rename {app => backend}/__init__.py (100%) rename {app => backend}/api/__init__.py (100%) rename {app => backend}/api/admin.py (100%) rename {app => backend}/api/apps.py (100%) rename {app => backend}/api/exceptions.py (100%) rename {app => backend}/api/filters.py (100%) rename {app/api/migrations => backend/api/management}/__init__.py (100%) rename {app/api/tests => backend/api/management/commands}/__init__.py (100%) rename {app => backend}/api/management/commands/create_admin.py (100%) rename {app => backend}/api/management/commands/create_role_mapping.py (100%) rename {app => backend}/api/management/commands/create_roles.py (100%) rename {app => backend}/api/management/commands/wait_for_db.py (100%) rename {app => backend}/api/managers.py (100%) rename {app => backend}/api/migrations/0001_initial.py (100%) rename {app => backend}/api/migrations/0002_comment.py (100%) rename {app => backend}/api/migrations/0002_project_single_class_classification.py (100%) rename {app => backend}/api/migrations/0002_speech2text.py (100%) rename {app => backend}/api/migrations/0003_merge_20200612_0205.py (100%) rename {app => backend}/api/migrations/0004_merge_20210114_1117.py (100%) rename {app => backend}/api/migrations/0005_auto_20210120_1730.py (100%) rename {app => backend}/api/migrations/0005_auto_20210201_0603.py (100%) rename {app => backend}/api/migrations/0006_merge_20210221_1258.py (100%) rename {app => backend}/api/migrations/0007_auto_20210301_0302.py (100%) rename {app => backend}/api/migrations/0008_auto_20210302_1013.py (100%) rename {app => backend}/api/migrations/0009_auto_20210411_2330.py (100%) rename {app => backend}/api/migrations/0009_tag.py (100%) rename {app => backend}/api/migrations/0010_auto_20210413_0249.py (100%) rename {app => backend}/api/migrations/0011_merge_0009_tag_0010_auto_20210413_0249.py (100%) rename {app/api/tests/upload => backend/api/migrations}/__init__.py (100%) rename {app => backend}/api/models.py (100%) rename {app => backend}/api/permissions.py (100%) rename {app => backend}/api/serializers.py (100%) rename {app => backend}/api/tasks.py (100%) rename {app/api/views/download => backend/api/tests}/__init__.py (100%) rename {app => backend}/api/tests/data/classification.jsonl (100%) rename {app => backend}/api/tests/data/example.csv (100%) rename {app => backend}/api/tests/data/example.invalid.2.csv (100%) rename {app => backend}/api/tests/data/example.invalid.2.xlsx (100%) rename {app => backend}/api/tests/data/example.jsonl (100%) rename {app => backend}/api/tests/data/example.txt (100%) rename {app => backend}/api/tests/data/example.utf16.csv (100%) rename {app => backend}/api/tests/data/example.xlsx (100%) rename {app => backend}/api/tests/data/example_column_and_row_not_matching.csv (100%) rename {app => backend}/api/tests/data/example_column_and_row_not_matching.xlsx (100%) rename {app => backend}/api/tests/data/example_fasttext.txt (100%) rename {app => backend}/api/tests/data/example_fasttext_label_tag_without_name.txt (100%) rename {app => backend}/api/tests/data/example_fasttext_without_text.txt (100%) rename {app => backend}/api/tests/data/example_one_column.csv (100%) rename {app => backend}/api/tests/data/example_one_column.xlsx (100%) rename {app => backend}/api/tests/data/example_one_column_no_header.xlsx (100%) rename {app => backend}/api/tests/data/example_out_of_order_columns.csv (100%) rename {app => backend}/api/tests/data/invalid_labels.json (100%) rename {app => backend}/api/tests/data/labeling.conll (100%) rename {app => backend}/api/tests/data/labeling.invalid.conll (100%) rename {app => backend}/api/tests/data/labeling.jsonl (100%) rename {app => backend}/api/tests/data/labeling.trailing.conll (100%) rename {app => backend}/api/tests/data/seq2seq.jsonl (100%) rename {app => backend}/api/tests/data/valid_labels.json (100%) rename {app => backend}/api/tests/test_api.py (100%) rename {app => backend}/api/tests/test_config.py (100%) rename {app => backend}/api/tests/test_models.py (100%) rename {app => backend}/api/tests/test_utils.py (100%) rename {app => backend}/api/tests/test_views.py (100%) rename {app/authentification => backend/api/tests/upload}/__init__.py (100%) rename {app => backend}/api/tests/upload/test_conll.py (100%) rename {app => backend}/api/tests/upload/test_csv.py (100%) rename {app => backend}/api/tests/upload/test_dataset.py (100%) rename {app => backend}/api/tests/upload/test_fasttext.py (100%) rename {app => backend}/api/tests/upload/test_utils.py (100%) rename {app => backend}/api/urls.py (100%) rename {app => backend}/api/utils.py (100%) rename {app => backend}/api/views/__init__.py (100%) rename {app => backend}/api/views/annotation.py (100%) rename {app => backend}/api/views/auto_labeling.py (100%) rename {app => backend}/api/views/comment.py (100%) rename {app => backend}/api/views/document.py (100%) rename {app/authentification/tests => backend/api/views/download}/__init__.py (100%) rename {app => backend}/api/views/download/catalog.py (100%) rename {app => backend}/api/views/download/data.py (100%) rename {app => backend}/api/views/download/examples.py (100%) rename {app => backend}/api/views/download/factory.py (100%) rename {app => backend}/api/views/download/repositories.py (100%) rename {app => backend}/api/views/download/service.py (100%) rename {app => backend}/api/views/download/writer.py (100%) rename {app => backend}/api/views/export_dataset.py (100%) rename {app => backend}/api/views/health.py (100%) rename {app => backend}/api/views/import_dataset.py (100%) rename {app => backend}/api/views/import_export.py (100%) rename {app => backend}/api/views/label.py (100%) rename {app => backend}/api/views/project.py (100%) rename {app => backend}/api/views/role.py (100%) rename {app => backend}/api/views/statistics.py (100%) rename {app => backend}/api/views/tag.py (100%) rename {app => backend}/api/views/task.py (100%) rename {app => backend}/api/views/upload/__init__.py (100%) rename {app => backend}/api/views/upload/catalog.py (100%) rename {app => backend}/api/views/upload/data.py (100%) rename {app => backend}/api/views/upload/dataset.py (100%) rename {app => backend}/api/views/upload/examples.py (100%) rename {app => backend}/api/views/upload/exception.py (100%) rename {app => backend}/api/views/upload/factory.py (100%) rename {app => backend}/api/views/upload/label.py (100%) rename {app => backend}/api/views/upload/labels.py (100%) rename {app => backend}/api/views/upload/utils.py (100%) rename {app => backend}/api/views/user.py (100%) rename {app => backend}/app/__init__.py (100%) rename {app => backend}/app/celery.py (100%) rename {app => backend}/app/settings.py (98%) rename {app => backend}/app/urls.py (100%) rename {app => backend}/app/wsgi.py (100%) rename {app/server => backend/authentification}/__init__.py (100%) rename {app => backend}/authentification/admin.py (100%) rename {app => backend}/authentification/forms.py (100%) rename {app => backend}/authentification/models.py (100%) rename {app => backend}/authentification/templates/acc_active_email.html (100%) rename {app => backend}/authentification/templates/base_auth.html (100%) rename {app => backend}/authentification/templates/email_not_set.html (100%) rename {app => backend}/authentification/templates/password_reset_complete.html (100%) rename {app => backend}/authentification/templates/password_reset_confirm.html (100%) rename {app => backend}/authentification/templates/password_reset_done.html (100%) rename {app => backend}/authentification/templates/password_reset_email.html (100%) rename {app => backend}/authentification/templates/password_reset_form.html (100%) rename {app => backend}/authentification/templates/password_reset_subject.txt (100%) rename {app => backend}/authentification/templates/signup.html (100%) rename {app => backend}/authentification/templates/validate_mail_address_complete.html (100%) rename {app => backend}/authentification/templates/validate_mail_address_invalid.html (100%) rename {app => backend}/authentification/templatetags/utils_templating.py (100%) rename {app/server/migrations => backend/authentification/tests}/__init__.py (100%) rename {app => backend}/authentification/tests/test_activate.py (100%) rename {app => backend}/authentification/tests/test_signup.py (100%) rename {app => backend}/authentification/tests/test_template.py (100%) rename {app => backend}/authentification/tokens.py (100%) rename {app => backend}/authentification/urls.py (100%) rename {app => backend}/authentification/utils.py (100%) rename {app => backend}/authentification/views.py (100%) rename {app => backend}/cli.py (100%) rename {app => backend}/manage.py (100%) rename {app/server/templatetags => backend/server}/__init__.py (100%) rename {app => backend}/server/apps.py (100%) rename {app => backend}/server/forms.py (100%) rename {app => backend}/server/middleware.py (100%) rename {app/server/tests => backend/server/migrations}/__init__.py (100%) rename {app => backend}/server/social_auth.py (100%) rename {app => backend}/server/static/.eslintrc (100%) rename {app => backend}/server/static/.jsbeautifyrc (100%) rename {app => backend}/server/static/.pug-lintrc (100%) rename {app => backend}/server/static/assets/css/admin.css (100%) rename {app => backend}/server/static/assets/css/annotation.css (100%) rename {app => backend}/server/static/assets/css/forum.css (100%) rename {app => backend}/server/static/assets/images/cat.png (100%) rename {app => backend}/server/static/assets/images/cats/seq2seq.jpg (100%) rename {app => backend}/server/static/assets/images/cats/sequence_labeling.jpg (100%) rename {app => backend}/server/static/assets/images/cats/speech2text.jpg (100%) rename {app => backend}/server/static/assets/images/cats/text_classification.jpg (100%) rename {app => backend}/server/static/assets/images/logo.png (100%) rename {app => backend}/server/static/assets/images/named_entity_recognition.png (100%) rename {app => backend}/server/static/assets/images/sentiment_analysis.png (100%) rename {app => backend}/server/static/assets/images/sequence_labeling.png (100%) rename {app => backend}/server/static/assets/images/translation.png (100%) rename {app => backend}/server/static/components/annotation.pug (100%) rename {app => backend}/server/static/components/annotationMixin.js (100%) rename {app => backend}/server/static/components/annotator.vue (100%) rename {app => backend}/server/static/components/demo/demo_api.js (100%) rename {app => backend}/server/static/components/demo/demo_data.js (100%) rename {app => backend}/server/static/components/directives.js (100%) rename {app => backend}/server/static/components/document_classification.vue (100%) rename {app => backend}/server/static/components/download.pug (100%) rename {app => backend}/server/static/components/download_seq2seq.vue (100%) rename {app => backend}/server/static/components/download_sequence_labeling.vue (100%) rename {app => backend}/server/static/components/download_speech2text.vue (100%) rename {app => backend}/server/static/components/download_text_classification.vue (100%) rename {app => backend}/server/static/components/examples/download_seq2seq.csv (100%) rename {app => backend}/server/static/components/examples/download_seq2seq.jsonl (100%) rename {app => backend}/server/static/components/examples/download_sequence_labeling.json1l (100%) rename {app => backend}/server/static/components/examples/download_sequence_labeling.jsonl (100%) rename {app => backend}/server/static/components/examples/download_speech2text.jsonl (100%) rename {app => backend}/server/static/components/examples/download_text_classification.csv (100%) rename {app => backend}/server/static/components/examples/download_text_classification.jsonl (100%) rename {app => backend}/server/static/components/examples/upload_seq2seq.csv (100%) rename {app => backend}/server/static/components/examples/upload_seq2seq.jsonl (100%) rename {app => backend}/server/static/components/examples/upload_seq2seq.txt (100%) rename {app => backend}/server/static/components/examples/upload_seq2seq.xlsx (100%) rename {app => backend}/server/static/components/examples/upload_sequence_labeling.conll (100%) rename {app => backend}/server/static/components/examples/upload_sequence_labeling.jsonl (100%) rename {app => backend}/server/static/components/examples/upload_sequence_labeling.txt (100%) rename {app => backend}/server/static/components/examples/upload_speech2text.jsonl (100%) rename {app => backend}/server/static/components/examples/upload_text_classification.csv (100%) rename {app => backend}/server/static/components/examples/upload_text_classification.jsonl (100%) rename {app => backend}/server/static/components/examples/upload_text_classification.txt (100%) rename {app => backend}/server/static/components/examples/upload_text_classification.xlsx (100%) rename {app => backend}/server/static/components/filter.js (100%) rename {app => backend}/server/static/components/guideline.vue (100%) rename {app => backend}/server/static/components/hljsLanguages.js (100%) rename {app => backend}/server/static/components/http.js (100%) rename {app => backend}/server/static/components/label.vue (100%) rename {app => backend}/server/static/components/messages.vue (100%) rename {app => backend}/server/static/components/preview.vue (100%) rename {app => backend}/server/static/components/projects.vue (100%) rename {app => backend}/server/static/components/seq2seq.vue (100%) rename {app => backend}/server/static/components/sequence_labeling.vue (100%) rename {app => backend}/server/static/components/speech2text.vue (100%) rename {app => backend}/server/static/components/stats.vue (100%) rename {app => backend}/server/static/components/upload.pug (100%) rename {app => backend}/server/static/components/uploadMixin.js (100%) rename {app => backend}/server/static/components/upload_seq2seq.vue (100%) rename {app => backend}/server/static/components/upload_sequence_labeling.vue (100%) rename {app => backend}/server/static/components/upload_speech2text.vue (100%) rename {app => backend}/server/static/components/upload_text_classification.vue (100%) rename {app => backend}/server/static/components/users.vue (100%) rename {app => backend}/server/static/package-lock.json (100%) rename {app => backend}/server/static/package.json (100%) rename {app => backend}/server/static/pages/dataset.js (100%) rename {app => backend}/server/static/pages/demo_named_entity.js (100%) rename {app => backend}/server/static/pages/demo_text_classification.js (100%) rename {app => backend}/server/static/pages/demo_translation.js (100%) rename {app => backend}/server/static/pages/document_classification.js (100%) rename {app => backend}/server/static/pages/download_seq2seq.js (100%) rename {app => backend}/server/static/pages/download_sequence_labeling.js (100%) rename {app => backend}/server/static/pages/download_speech2text.js (100%) rename {app => backend}/server/static/pages/download_text_classification.js (100%) rename {app => backend}/server/static/pages/guideline.js (100%) rename {app => backend}/server/static/pages/index.js (100%) rename {app => backend}/server/static/pages/label.js (100%) rename {app => backend}/server/static/pages/projects.js (100%) rename {app => backend}/server/static/pages/seq2seq.js (100%) rename {app => backend}/server/static/pages/sequence_labeling.js (100%) rename {app => backend}/server/static/pages/speech2text.js (100%) rename {app => backend}/server/static/pages/stats.js (100%) rename {app => backend}/server/static/pages/upload_seq2seq.js (100%) rename {app => backend}/server/static/pages/upload_sequence_labeling.js (100%) rename {app => backend}/server/static/pages/upload_speech2text.js (100%) rename {app => backend}/server/static/pages/upload_text_classification.js (100%) rename {app => backend}/server/static/pages/users.js (100%) rename {app => backend}/server/static/static/android-icon-144x144.png (100%) rename {app => backend}/server/static/static/android-icon-192x192.png (100%) rename {app => backend}/server/static/static/android-icon-36x36.png (100%) rename {app => backend}/server/static/static/android-icon-48x48.png (100%) rename {app => backend}/server/static/static/android-icon-72x72.png (100%) rename {app => backend}/server/static/static/android-icon-96x96.png (100%) rename {app => backend}/server/static/static/apple-icon-114x114.png (100%) rename {app => backend}/server/static/static/apple-icon-120x120.png (100%) rename {app => backend}/server/static/static/apple-icon-144x144.png (100%) rename {app => backend}/server/static/static/apple-icon-152x152.png (100%) rename {app => backend}/server/static/static/apple-icon-180x180.png (100%) rename {app => backend}/server/static/static/apple-icon-57x57.png (100%) rename {app => backend}/server/static/static/apple-icon-60x60.png (100%) rename {app => backend}/server/static/static/apple-icon-72x72.png (100%) rename {app => backend}/server/static/static/apple-icon-76x76.png (100%) rename {app => backend}/server/static/static/apple-icon-precomposed.png (100%) rename {app => backend}/server/static/static/apple-icon.png (100%) rename {app => backend}/server/static/static/browserconfig.xml (100%) rename {app => backend}/server/static/static/favicon-16x16.png (100%) rename {app => backend}/server/static/static/favicon-32x32.png (100%) rename {app => backend}/server/static/static/favicon-96x96.png (100%) rename {app => backend}/server/static/static/favicon.ico (100%) rename {app => backend}/server/static/static/manifest.json (100%) rename {app => backend}/server/static/static/ms-icon-144x144.png (100%) rename {app => backend}/server/static/static/ms-icon-150x150.png (100%) rename {app => backend}/server/static/static/ms-icon-310x310.png (100%) rename {app => backend}/server/static/static/ms-icon-70x70.png (100%) rename {app => backend}/server/static/webpack.config.js (100%) rename {app => backend}/server/templates/admin.html (100%) rename {app => backend}/server/templates/annotation.html (100%) rename {app => backend}/server/templates/base.html (100%) rename {app => backend}/server/templates/dataset.html (100%) rename {app => backend}/server/templates/index.html (100%) rename {app => backend}/server/templates/login.html (100%) rename {app => backend}/server/templates/projects.html (100%) rename {app => backend}/server/templates/tags/azure_appinsights.html (100%) rename {app => backend}/server/templates/tags/google_analytics.html (100%) create mode 100644 backend/server/templatetags/__init__.py rename {app => backend}/server/templatetags/analytics.py (100%) create mode 100644 backend/server/tests/__init__.py rename {app => backend}/server/tests/cassettes/TestAzureADTenantSocialAuth.test_fetch_permissions_is_admin.yaml (100%) rename {app => backend}/server/tests/cassettes/TestAzureADTenantSocialAuth.test_fetch_permissions_not_admin.yaml (100%) rename {app => backend}/server/tests/cassettes/TestGithubSocialAuth.test_fetch_permissions_is_admin.yaml (100%) rename {app => backend}/server/tests/cassettes/TestGithubSocialAuth.test_fetch_permissions_not_admin.yaml (100%) rename {app => backend}/server/tests/cassettes/TestOktaOAuth2SocialAuth.test_fetch_permissions_is_admin.yaml (100%) rename {app => backend}/server/tests/cassettes/TestOktaOAuth2SocialAuth.test_fetch_permissions_not_admin.yaml (100%) rename {app => backend}/server/tests/cassettes/TestOktaOpenIdConnectSocialAuth.test_fetch_permissions_is_admin.yaml (100%) rename {app => backend}/server/tests/cassettes/TestOktaOpenIdConnectSocialAuth.test_fetch_permissions_not_admin.yaml (100%) rename {app => backend}/server/tests/test_middleware.py (100%) rename {app => backend}/server/tests/test_social_auth.py (100%) rename {app => backend}/server/urls.py (100%) rename {app => backend}/server/views.py (100%) diff --git a/.coveragerc b/.coveragerc index daa97a07..44be4a5e 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,14 +1,14 @@ [report] omit = - app/app/wsgi.py - app/classifier/* - app/server/migrations/* - app/server/templatetags/* - app/server/tests/* - app/api/migrations/* - app/api/tests/* - app/authentification/tests/* - app/authentification/templatetags/* + backend/app/wsgi.py + backend/classifier/* + backend/server/migrations/* + backend/server/templatetags/* + backend/server/tests/* + backend/api/migrations/* + backend/api/tests/* + backend/authentification/tests/* + backend/authentification/templatetags/* exclude_lines = pragma: no cover diff --git a/.dockerignore b/.dockerignore index cb81fd1b..8c91f960 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,5 @@ * -!app/ +!backend/ !frontend/ !nginx/ !tests/ @@ -10,16 +10,16 @@ !Pipfile.lock !Pipfile -app/**/bundle/ -app/**/node_modules/ -app/**/webpack-stats.json +backend/**/bundle/ +backend/**/node_modules/ +backend/**/webpack-stats.json -app/**/*.sqlite3 -app/**/.env -app/**/junitxml/ -app/**/staticfiles/ -app/**/venv/ -app/**/__pycache__/ +backend/**/*.sqlite3 +backend/**/.env +backend/**/junitxml/ +backend/**/staticfiles/ +backend/**/venv/ +backend/**/__pycache__/ tests/**/__pycache__/ frontend/.nuxt/ diff --git a/.flake8 b/.flake8 index 21c000e8..bd97aa2c 100644 --- a/.flake8 +++ b/.flake8 @@ -1,3 +1,3 @@ [flake8] -filename = app/* +filename = backend/* max-line-length = 120 diff --git a/Dockerfile b/Dockerfile index b5bd1207..2b06cc3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,8 +48,8 @@ RUN pip install --no-cache-dir -U pip \ && rm -rf /deps COPY --chown=doccano:doccano . /doccano -WORKDIR /doccano/app -COPY --from=frontend-builder /frontend/dist /doccano/app/client/dist +WORKDIR /doccano/backend +COPY --from=frontend-builder /frontend/dist /doccano/backend/client/dist RUN python manage.py collectstatic --noinput VOLUME /data diff --git a/MANIFEST.in b/MANIFEST.in index 635f3eca..2f960e86 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,17 +1,17 @@ -include app/manage.py -include app/requirements.txt +include backend/manage.py +include backend/requirements.txt include README.md exclude *.yml exclude *.yaml -graft app/staticfiles -graft app/client -graft app/doccano +graft backend/staticfiles +graft backend/client +graft backend/doccano -prune app/staticfiles/bundle -prune app/staticfiles/assets -prune app/staticfiles/components -prune app/server/static +prune backend/staticfiles/bundle +prune backend/staticfiles/assets +prune backend/staticfiles/components +prune backend/server/static prune frontend prune docs prune nginx diff --git a/app/.dockerignore b/backend/.dockerignore similarity index 100% rename from app/.dockerignore rename to backend/.dockerignore diff --git a/app/Dockerfile.dev b/backend/Dockerfile.dev similarity index 100% rename from app/Dockerfile.dev rename to backend/Dockerfile.dev diff --git a/app/Dockerfile.prod b/backend/Dockerfile.prod similarity index 89% rename from app/Dockerfile.prod rename to backend/Dockerfile.prod index a3b806eb..46b4211d 100644 --- a/app/Dockerfile.prod +++ b/backend/Dockerfile.prod @@ -3,13 +3,13 @@ FROM python:${PYTHON_VERSION}-slim-buster CMD ["python3"] -WORKDIR /app +WORKDIR /backend ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 -COPY ./app/ /app/ -COPY ./Pipfile* /app/ +COPY ./backend/ /backend/ +COPY ./Pipfile* /backend/ # hadolint ignore=DL3013 RUN apt-get update \ diff --git a/app/__init__.py b/backend/__init__.py similarity index 100% rename from app/__init__.py rename to backend/__init__.py diff --git a/app/api/__init__.py b/backend/api/__init__.py similarity index 100% rename from app/api/__init__.py rename to backend/api/__init__.py diff --git a/app/api/admin.py b/backend/api/admin.py similarity index 100% rename from app/api/admin.py rename to backend/api/admin.py diff --git a/app/api/apps.py b/backend/api/apps.py similarity index 100% rename from app/api/apps.py rename to backend/api/apps.py diff --git a/app/api/exceptions.py b/backend/api/exceptions.py similarity index 100% rename from app/api/exceptions.py rename to backend/api/exceptions.py diff --git a/app/api/filters.py b/backend/api/filters.py similarity index 100% rename from app/api/filters.py rename to backend/api/filters.py diff --git a/app/api/migrations/__init__.py b/backend/api/management/__init__.py similarity index 100% rename from app/api/migrations/__init__.py rename to backend/api/management/__init__.py diff --git a/app/api/tests/__init__.py b/backend/api/management/commands/__init__.py similarity index 100% rename from app/api/tests/__init__.py rename to backend/api/management/commands/__init__.py diff --git a/app/api/management/commands/create_admin.py b/backend/api/management/commands/create_admin.py similarity index 100% rename from app/api/management/commands/create_admin.py rename to backend/api/management/commands/create_admin.py diff --git a/app/api/management/commands/create_role_mapping.py b/backend/api/management/commands/create_role_mapping.py similarity index 100% rename from app/api/management/commands/create_role_mapping.py rename to backend/api/management/commands/create_role_mapping.py diff --git a/app/api/management/commands/create_roles.py b/backend/api/management/commands/create_roles.py similarity index 100% rename from app/api/management/commands/create_roles.py rename to backend/api/management/commands/create_roles.py diff --git a/app/api/management/commands/wait_for_db.py b/backend/api/management/commands/wait_for_db.py similarity index 100% rename from app/api/management/commands/wait_for_db.py rename to backend/api/management/commands/wait_for_db.py diff --git a/app/api/managers.py b/backend/api/managers.py similarity index 100% rename from app/api/managers.py rename to backend/api/managers.py diff --git a/app/api/migrations/0001_initial.py b/backend/api/migrations/0001_initial.py similarity index 100% rename from app/api/migrations/0001_initial.py rename to backend/api/migrations/0001_initial.py diff --git a/app/api/migrations/0002_comment.py b/backend/api/migrations/0002_comment.py similarity index 100% rename from app/api/migrations/0002_comment.py rename to backend/api/migrations/0002_comment.py diff --git a/app/api/migrations/0002_project_single_class_classification.py b/backend/api/migrations/0002_project_single_class_classification.py similarity index 100% rename from app/api/migrations/0002_project_single_class_classification.py rename to backend/api/migrations/0002_project_single_class_classification.py diff --git a/app/api/migrations/0002_speech2text.py b/backend/api/migrations/0002_speech2text.py similarity index 100% rename from app/api/migrations/0002_speech2text.py rename to backend/api/migrations/0002_speech2text.py diff --git a/app/api/migrations/0003_merge_20200612_0205.py b/backend/api/migrations/0003_merge_20200612_0205.py similarity index 100% rename from app/api/migrations/0003_merge_20200612_0205.py rename to backend/api/migrations/0003_merge_20200612_0205.py diff --git a/app/api/migrations/0004_merge_20210114_1117.py b/backend/api/migrations/0004_merge_20210114_1117.py similarity index 100% rename from app/api/migrations/0004_merge_20210114_1117.py rename to backend/api/migrations/0004_merge_20210114_1117.py diff --git a/app/api/migrations/0005_auto_20210120_1730.py b/backend/api/migrations/0005_auto_20210120_1730.py similarity index 100% rename from app/api/migrations/0005_auto_20210120_1730.py rename to backend/api/migrations/0005_auto_20210120_1730.py diff --git a/app/api/migrations/0005_auto_20210201_0603.py b/backend/api/migrations/0005_auto_20210201_0603.py similarity index 100% rename from app/api/migrations/0005_auto_20210201_0603.py rename to backend/api/migrations/0005_auto_20210201_0603.py diff --git a/app/api/migrations/0006_merge_20210221_1258.py b/backend/api/migrations/0006_merge_20210221_1258.py similarity index 100% rename from app/api/migrations/0006_merge_20210221_1258.py rename to backend/api/migrations/0006_merge_20210221_1258.py diff --git a/app/api/migrations/0007_auto_20210301_0302.py b/backend/api/migrations/0007_auto_20210301_0302.py similarity index 100% rename from app/api/migrations/0007_auto_20210301_0302.py rename to backend/api/migrations/0007_auto_20210301_0302.py diff --git a/app/api/migrations/0008_auto_20210302_1013.py b/backend/api/migrations/0008_auto_20210302_1013.py similarity index 100% rename from app/api/migrations/0008_auto_20210302_1013.py rename to backend/api/migrations/0008_auto_20210302_1013.py diff --git a/app/api/migrations/0009_auto_20210411_2330.py b/backend/api/migrations/0009_auto_20210411_2330.py similarity index 100% rename from app/api/migrations/0009_auto_20210411_2330.py rename to backend/api/migrations/0009_auto_20210411_2330.py diff --git a/app/api/migrations/0009_tag.py b/backend/api/migrations/0009_tag.py similarity index 100% rename from app/api/migrations/0009_tag.py rename to backend/api/migrations/0009_tag.py diff --git a/app/api/migrations/0010_auto_20210413_0249.py b/backend/api/migrations/0010_auto_20210413_0249.py similarity index 100% rename from app/api/migrations/0010_auto_20210413_0249.py rename to backend/api/migrations/0010_auto_20210413_0249.py diff --git a/app/api/migrations/0011_merge_0009_tag_0010_auto_20210413_0249.py b/backend/api/migrations/0011_merge_0009_tag_0010_auto_20210413_0249.py similarity index 100% rename from app/api/migrations/0011_merge_0009_tag_0010_auto_20210413_0249.py rename to backend/api/migrations/0011_merge_0009_tag_0010_auto_20210413_0249.py diff --git a/app/api/tests/upload/__init__.py b/backend/api/migrations/__init__.py similarity index 100% rename from app/api/tests/upload/__init__.py rename to backend/api/migrations/__init__.py diff --git a/app/api/models.py b/backend/api/models.py similarity index 100% rename from app/api/models.py rename to backend/api/models.py diff --git a/app/api/permissions.py b/backend/api/permissions.py similarity index 100% rename from app/api/permissions.py rename to backend/api/permissions.py diff --git a/app/api/serializers.py b/backend/api/serializers.py similarity index 100% rename from app/api/serializers.py rename to backend/api/serializers.py diff --git a/app/api/tasks.py b/backend/api/tasks.py similarity index 100% rename from app/api/tasks.py rename to backend/api/tasks.py diff --git a/app/api/views/download/__init__.py b/backend/api/tests/__init__.py similarity index 100% rename from app/api/views/download/__init__.py rename to backend/api/tests/__init__.py diff --git a/app/api/tests/data/classification.jsonl b/backend/api/tests/data/classification.jsonl similarity index 100% rename from app/api/tests/data/classification.jsonl rename to backend/api/tests/data/classification.jsonl diff --git a/app/api/tests/data/example.csv b/backend/api/tests/data/example.csv similarity index 100% rename from app/api/tests/data/example.csv rename to backend/api/tests/data/example.csv diff --git a/app/api/tests/data/example.invalid.2.csv b/backend/api/tests/data/example.invalid.2.csv similarity index 100% rename from app/api/tests/data/example.invalid.2.csv rename to backend/api/tests/data/example.invalid.2.csv diff --git a/app/api/tests/data/example.invalid.2.xlsx b/backend/api/tests/data/example.invalid.2.xlsx similarity index 100% rename from app/api/tests/data/example.invalid.2.xlsx rename to backend/api/tests/data/example.invalid.2.xlsx diff --git a/app/api/tests/data/example.jsonl b/backend/api/tests/data/example.jsonl similarity index 100% rename from app/api/tests/data/example.jsonl rename to backend/api/tests/data/example.jsonl diff --git a/app/api/tests/data/example.txt b/backend/api/tests/data/example.txt similarity index 100% rename from app/api/tests/data/example.txt rename to backend/api/tests/data/example.txt diff --git a/app/api/tests/data/example.utf16.csv b/backend/api/tests/data/example.utf16.csv similarity index 100% rename from app/api/tests/data/example.utf16.csv rename to backend/api/tests/data/example.utf16.csv diff --git a/app/api/tests/data/example.xlsx b/backend/api/tests/data/example.xlsx similarity index 100% rename from app/api/tests/data/example.xlsx rename to backend/api/tests/data/example.xlsx diff --git a/app/api/tests/data/example_column_and_row_not_matching.csv b/backend/api/tests/data/example_column_and_row_not_matching.csv similarity index 100% rename from app/api/tests/data/example_column_and_row_not_matching.csv rename to backend/api/tests/data/example_column_and_row_not_matching.csv diff --git a/app/api/tests/data/example_column_and_row_not_matching.xlsx b/backend/api/tests/data/example_column_and_row_not_matching.xlsx similarity index 100% rename from app/api/tests/data/example_column_and_row_not_matching.xlsx rename to backend/api/tests/data/example_column_and_row_not_matching.xlsx diff --git a/app/api/tests/data/example_fasttext.txt b/backend/api/tests/data/example_fasttext.txt similarity index 100% rename from app/api/tests/data/example_fasttext.txt rename to backend/api/tests/data/example_fasttext.txt diff --git a/app/api/tests/data/example_fasttext_label_tag_without_name.txt b/backend/api/tests/data/example_fasttext_label_tag_without_name.txt similarity index 100% rename from app/api/tests/data/example_fasttext_label_tag_without_name.txt rename to backend/api/tests/data/example_fasttext_label_tag_without_name.txt diff --git a/app/api/tests/data/example_fasttext_without_text.txt b/backend/api/tests/data/example_fasttext_without_text.txt similarity index 100% rename from app/api/tests/data/example_fasttext_without_text.txt rename to backend/api/tests/data/example_fasttext_without_text.txt diff --git a/app/api/tests/data/example_one_column.csv b/backend/api/tests/data/example_one_column.csv similarity index 100% rename from app/api/tests/data/example_one_column.csv rename to backend/api/tests/data/example_one_column.csv diff --git a/app/api/tests/data/example_one_column.xlsx b/backend/api/tests/data/example_one_column.xlsx similarity index 100% rename from app/api/tests/data/example_one_column.xlsx rename to backend/api/tests/data/example_one_column.xlsx diff --git a/app/api/tests/data/example_one_column_no_header.xlsx b/backend/api/tests/data/example_one_column_no_header.xlsx similarity index 100% rename from app/api/tests/data/example_one_column_no_header.xlsx rename to backend/api/tests/data/example_one_column_no_header.xlsx diff --git a/app/api/tests/data/example_out_of_order_columns.csv b/backend/api/tests/data/example_out_of_order_columns.csv similarity index 100% rename from app/api/tests/data/example_out_of_order_columns.csv rename to backend/api/tests/data/example_out_of_order_columns.csv diff --git a/app/api/tests/data/invalid_labels.json b/backend/api/tests/data/invalid_labels.json similarity index 100% rename from app/api/tests/data/invalid_labels.json rename to backend/api/tests/data/invalid_labels.json diff --git a/app/api/tests/data/labeling.conll b/backend/api/tests/data/labeling.conll similarity index 100% rename from app/api/tests/data/labeling.conll rename to backend/api/tests/data/labeling.conll diff --git a/app/api/tests/data/labeling.invalid.conll b/backend/api/tests/data/labeling.invalid.conll similarity index 100% rename from app/api/tests/data/labeling.invalid.conll rename to backend/api/tests/data/labeling.invalid.conll diff --git a/app/api/tests/data/labeling.jsonl b/backend/api/tests/data/labeling.jsonl similarity index 100% rename from app/api/tests/data/labeling.jsonl rename to backend/api/tests/data/labeling.jsonl diff --git a/app/api/tests/data/labeling.trailing.conll b/backend/api/tests/data/labeling.trailing.conll similarity index 100% rename from app/api/tests/data/labeling.trailing.conll rename to backend/api/tests/data/labeling.trailing.conll diff --git a/app/api/tests/data/seq2seq.jsonl b/backend/api/tests/data/seq2seq.jsonl similarity index 100% rename from app/api/tests/data/seq2seq.jsonl rename to backend/api/tests/data/seq2seq.jsonl diff --git a/app/api/tests/data/valid_labels.json b/backend/api/tests/data/valid_labels.json similarity index 100% rename from app/api/tests/data/valid_labels.json rename to backend/api/tests/data/valid_labels.json diff --git a/app/api/tests/test_api.py b/backend/api/tests/test_api.py similarity index 100% rename from app/api/tests/test_api.py rename to backend/api/tests/test_api.py diff --git a/app/api/tests/test_config.py b/backend/api/tests/test_config.py similarity index 100% rename from app/api/tests/test_config.py rename to backend/api/tests/test_config.py diff --git a/app/api/tests/test_models.py b/backend/api/tests/test_models.py similarity index 100% rename from app/api/tests/test_models.py rename to backend/api/tests/test_models.py diff --git a/app/api/tests/test_utils.py b/backend/api/tests/test_utils.py similarity index 100% rename from app/api/tests/test_utils.py rename to backend/api/tests/test_utils.py diff --git a/app/api/tests/test_views.py b/backend/api/tests/test_views.py similarity index 100% rename from app/api/tests/test_views.py rename to backend/api/tests/test_views.py diff --git a/app/authentification/__init__.py b/backend/api/tests/upload/__init__.py similarity index 100% rename from app/authentification/__init__.py rename to backend/api/tests/upload/__init__.py diff --git a/app/api/tests/upload/test_conll.py b/backend/api/tests/upload/test_conll.py similarity index 100% rename from app/api/tests/upload/test_conll.py rename to backend/api/tests/upload/test_conll.py diff --git a/app/api/tests/upload/test_csv.py b/backend/api/tests/upload/test_csv.py similarity index 100% rename from app/api/tests/upload/test_csv.py rename to backend/api/tests/upload/test_csv.py diff --git a/app/api/tests/upload/test_dataset.py b/backend/api/tests/upload/test_dataset.py similarity index 100% rename from app/api/tests/upload/test_dataset.py rename to backend/api/tests/upload/test_dataset.py diff --git a/app/api/tests/upload/test_fasttext.py b/backend/api/tests/upload/test_fasttext.py similarity index 100% rename from app/api/tests/upload/test_fasttext.py rename to backend/api/tests/upload/test_fasttext.py diff --git a/app/api/tests/upload/test_utils.py b/backend/api/tests/upload/test_utils.py similarity index 100% rename from app/api/tests/upload/test_utils.py rename to backend/api/tests/upload/test_utils.py diff --git a/app/api/urls.py b/backend/api/urls.py similarity index 100% rename from app/api/urls.py rename to backend/api/urls.py diff --git a/app/api/utils.py b/backend/api/utils.py similarity index 100% rename from app/api/utils.py rename to backend/api/utils.py diff --git a/app/api/views/__init__.py b/backend/api/views/__init__.py similarity index 100% rename from app/api/views/__init__.py rename to backend/api/views/__init__.py diff --git a/app/api/views/annotation.py b/backend/api/views/annotation.py similarity index 100% rename from app/api/views/annotation.py rename to backend/api/views/annotation.py diff --git a/app/api/views/auto_labeling.py b/backend/api/views/auto_labeling.py similarity index 100% rename from app/api/views/auto_labeling.py rename to backend/api/views/auto_labeling.py diff --git a/app/api/views/comment.py b/backend/api/views/comment.py similarity index 100% rename from app/api/views/comment.py rename to backend/api/views/comment.py diff --git a/app/api/views/document.py b/backend/api/views/document.py similarity index 100% rename from app/api/views/document.py rename to backend/api/views/document.py diff --git a/app/authentification/tests/__init__.py b/backend/api/views/download/__init__.py similarity index 100% rename from app/authentification/tests/__init__.py rename to backend/api/views/download/__init__.py diff --git a/app/api/views/download/catalog.py b/backend/api/views/download/catalog.py similarity index 100% rename from app/api/views/download/catalog.py rename to backend/api/views/download/catalog.py diff --git a/app/api/views/download/data.py b/backend/api/views/download/data.py similarity index 100% rename from app/api/views/download/data.py rename to backend/api/views/download/data.py diff --git a/app/api/views/download/examples.py b/backend/api/views/download/examples.py similarity index 100% rename from app/api/views/download/examples.py rename to backend/api/views/download/examples.py diff --git a/app/api/views/download/factory.py b/backend/api/views/download/factory.py similarity index 100% rename from app/api/views/download/factory.py rename to backend/api/views/download/factory.py diff --git a/app/api/views/download/repositories.py b/backend/api/views/download/repositories.py similarity index 100% rename from app/api/views/download/repositories.py rename to backend/api/views/download/repositories.py diff --git a/app/api/views/download/service.py b/backend/api/views/download/service.py similarity index 100% rename from app/api/views/download/service.py rename to backend/api/views/download/service.py diff --git a/app/api/views/download/writer.py b/backend/api/views/download/writer.py similarity index 100% rename from app/api/views/download/writer.py rename to backend/api/views/download/writer.py diff --git a/app/api/views/export_dataset.py b/backend/api/views/export_dataset.py similarity index 100% rename from app/api/views/export_dataset.py rename to backend/api/views/export_dataset.py diff --git a/app/api/views/health.py b/backend/api/views/health.py similarity index 100% rename from app/api/views/health.py rename to backend/api/views/health.py diff --git a/app/api/views/import_dataset.py b/backend/api/views/import_dataset.py similarity index 100% rename from app/api/views/import_dataset.py rename to backend/api/views/import_dataset.py diff --git a/app/api/views/import_export.py b/backend/api/views/import_export.py similarity index 100% rename from app/api/views/import_export.py rename to backend/api/views/import_export.py diff --git a/app/api/views/label.py b/backend/api/views/label.py similarity index 100% rename from app/api/views/label.py rename to backend/api/views/label.py diff --git a/app/api/views/project.py b/backend/api/views/project.py similarity index 100% rename from app/api/views/project.py rename to backend/api/views/project.py diff --git a/app/api/views/role.py b/backend/api/views/role.py similarity index 100% rename from app/api/views/role.py rename to backend/api/views/role.py diff --git a/app/api/views/statistics.py b/backend/api/views/statistics.py similarity index 100% rename from app/api/views/statistics.py rename to backend/api/views/statistics.py diff --git a/app/api/views/tag.py b/backend/api/views/tag.py similarity index 100% rename from app/api/views/tag.py rename to backend/api/views/tag.py diff --git a/app/api/views/task.py b/backend/api/views/task.py similarity index 100% rename from app/api/views/task.py rename to backend/api/views/task.py diff --git a/app/api/views/upload/__init__.py b/backend/api/views/upload/__init__.py similarity index 100% rename from app/api/views/upload/__init__.py rename to backend/api/views/upload/__init__.py diff --git a/app/api/views/upload/catalog.py b/backend/api/views/upload/catalog.py similarity index 100% rename from app/api/views/upload/catalog.py rename to backend/api/views/upload/catalog.py diff --git a/app/api/views/upload/data.py b/backend/api/views/upload/data.py similarity index 100% rename from app/api/views/upload/data.py rename to backend/api/views/upload/data.py diff --git a/app/api/views/upload/dataset.py b/backend/api/views/upload/dataset.py similarity index 100% rename from app/api/views/upload/dataset.py rename to backend/api/views/upload/dataset.py diff --git a/app/api/views/upload/examples.py b/backend/api/views/upload/examples.py similarity index 100% rename from app/api/views/upload/examples.py rename to backend/api/views/upload/examples.py diff --git a/app/api/views/upload/exception.py b/backend/api/views/upload/exception.py similarity index 100% rename from app/api/views/upload/exception.py rename to backend/api/views/upload/exception.py diff --git a/app/api/views/upload/factory.py b/backend/api/views/upload/factory.py similarity index 100% rename from app/api/views/upload/factory.py rename to backend/api/views/upload/factory.py diff --git a/app/api/views/upload/label.py b/backend/api/views/upload/label.py similarity index 100% rename from app/api/views/upload/label.py rename to backend/api/views/upload/label.py diff --git a/app/api/views/upload/labels.py b/backend/api/views/upload/labels.py similarity index 100% rename from app/api/views/upload/labels.py rename to backend/api/views/upload/labels.py diff --git a/app/api/views/upload/utils.py b/backend/api/views/upload/utils.py similarity index 100% rename from app/api/views/upload/utils.py rename to backend/api/views/upload/utils.py diff --git a/app/api/views/user.py b/backend/api/views/user.py similarity index 100% rename from app/api/views/user.py rename to backend/api/views/user.py diff --git a/app/app/__init__.py b/backend/app/__init__.py similarity index 100% rename from app/app/__init__.py rename to backend/app/__init__.py diff --git a/app/app/celery.py b/backend/app/celery.py similarity index 100% rename from app/app/celery.py rename to backend/app/celery.py diff --git a/app/app/settings.py b/backend/app/settings.py similarity index 98% rename from app/app/settings.py rename to backend/app/settings.py index e301c779..5df89e66 100644 --- a/app/app/settings.py +++ b/backend/app/settings.py @@ -104,10 +104,10 @@ TEMPLATES = [ 'social_django.context_processors.backends', 'social_django.context_processors.login_redirect', ], - 'libraries': { - 'analytics': 'server.templatetags.analytics', - 'utils_templating': 'authentification.templatetags.utils_templating', - }, + # 'libraries': { + # 'analytics': 'server.templatetags.analytics', + # 'utils_templating': 'authentification.templatetags.utils_templating', + # }, }, }, ] diff --git a/app/app/urls.py b/backend/app/urls.py similarity index 100% rename from app/app/urls.py rename to backend/app/urls.py diff --git a/app/app/wsgi.py b/backend/app/wsgi.py similarity index 100% rename from app/app/wsgi.py rename to backend/app/wsgi.py diff --git a/app/server/__init__.py b/backend/authentification/__init__.py similarity index 100% rename from app/server/__init__.py rename to backend/authentification/__init__.py diff --git a/app/authentification/admin.py b/backend/authentification/admin.py similarity index 100% rename from app/authentification/admin.py rename to backend/authentification/admin.py diff --git a/app/authentification/forms.py b/backend/authentification/forms.py similarity index 100% rename from app/authentification/forms.py rename to backend/authentification/forms.py diff --git a/app/authentification/models.py b/backend/authentification/models.py similarity index 100% rename from app/authentification/models.py rename to backend/authentification/models.py diff --git a/app/authentification/templates/acc_active_email.html b/backend/authentification/templates/acc_active_email.html similarity index 100% rename from app/authentification/templates/acc_active_email.html rename to backend/authentification/templates/acc_active_email.html diff --git a/app/authentification/templates/base_auth.html b/backend/authentification/templates/base_auth.html similarity index 100% rename from app/authentification/templates/base_auth.html rename to backend/authentification/templates/base_auth.html diff --git a/app/authentification/templates/email_not_set.html b/backend/authentification/templates/email_not_set.html similarity index 100% rename from app/authentification/templates/email_not_set.html rename to backend/authentification/templates/email_not_set.html diff --git a/app/authentification/templates/password_reset_complete.html b/backend/authentification/templates/password_reset_complete.html similarity index 100% rename from app/authentification/templates/password_reset_complete.html rename to backend/authentification/templates/password_reset_complete.html diff --git a/app/authentification/templates/password_reset_confirm.html b/backend/authentification/templates/password_reset_confirm.html similarity index 100% rename from app/authentification/templates/password_reset_confirm.html rename to backend/authentification/templates/password_reset_confirm.html diff --git a/app/authentification/templates/password_reset_done.html b/backend/authentification/templates/password_reset_done.html similarity index 100% rename from app/authentification/templates/password_reset_done.html rename to backend/authentification/templates/password_reset_done.html diff --git a/app/authentification/templates/password_reset_email.html b/backend/authentification/templates/password_reset_email.html similarity index 100% rename from app/authentification/templates/password_reset_email.html rename to backend/authentification/templates/password_reset_email.html diff --git a/app/authentification/templates/password_reset_form.html b/backend/authentification/templates/password_reset_form.html similarity index 100% rename from app/authentification/templates/password_reset_form.html rename to backend/authentification/templates/password_reset_form.html diff --git a/app/authentification/templates/password_reset_subject.txt b/backend/authentification/templates/password_reset_subject.txt similarity index 100% rename from app/authentification/templates/password_reset_subject.txt rename to backend/authentification/templates/password_reset_subject.txt diff --git a/app/authentification/templates/signup.html b/backend/authentification/templates/signup.html similarity index 100% rename from app/authentification/templates/signup.html rename to backend/authentification/templates/signup.html diff --git a/app/authentification/templates/validate_mail_address_complete.html b/backend/authentification/templates/validate_mail_address_complete.html similarity index 100% rename from app/authentification/templates/validate_mail_address_complete.html rename to backend/authentification/templates/validate_mail_address_complete.html diff --git a/app/authentification/templates/validate_mail_address_invalid.html b/backend/authentification/templates/validate_mail_address_invalid.html similarity index 100% rename from app/authentification/templates/validate_mail_address_invalid.html rename to backend/authentification/templates/validate_mail_address_invalid.html diff --git a/app/authentification/templatetags/utils_templating.py b/backend/authentification/templatetags/utils_templating.py similarity index 100% rename from app/authentification/templatetags/utils_templating.py rename to backend/authentification/templatetags/utils_templating.py diff --git a/app/server/migrations/__init__.py b/backend/authentification/tests/__init__.py similarity index 100% rename from app/server/migrations/__init__.py rename to backend/authentification/tests/__init__.py diff --git a/app/authentification/tests/test_activate.py b/backend/authentification/tests/test_activate.py similarity index 100% rename from app/authentification/tests/test_activate.py rename to backend/authentification/tests/test_activate.py diff --git a/app/authentification/tests/test_signup.py b/backend/authentification/tests/test_signup.py similarity index 100% rename from app/authentification/tests/test_signup.py rename to backend/authentification/tests/test_signup.py diff --git a/app/authentification/tests/test_template.py b/backend/authentification/tests/test_template.py similarity index 100% rename from app/authentification/tests/test_template.py rename to backend/authentification/tests/test_template.py diff --git a/app/authentification/tokens.py b/backend/authentification/tokens.py similarity index 100% rename from app/authentification/tokens.py rename to backend/authentification/tokens.py diff --git a/app/authentification/urls.py b/backend/authentification/urls.py similarity index 100% rename from app/authentification/urls.py rename to backend/authentification/urls.py diff --git a/app/authentification/utils.py b/backend/authentification/utils.py similarity index 100% rename from app/authentification/utils.py rename to backend/authentification/utils.py diff --git a/app/authentification/views.py b/backend/authentification/views.py similarity index 100% rename from app/authentification/views.py rename to backend/authentification/views.py diff --git a/app/cli.py b/backend/cli.py similarity index 100% rename from app/cli.py rename to backend/cli.py diff --git a/app/manage.py b/backend/manage.py similarity index 100% rename from app/manage.py rename to backend/manage.py diff --git a/app/server/templatetags/__init__.py b/backend/server/__init__.py similarity index 100% rename from app/server/templatetags/__init__.py rename to backend/server/__init__.py diff --git a/app/server/apps.py b/backend/server/apps.py similarity index 100% rename from app/server/apps.py rename to backend/server/apps.py diff --git a/app/server/forms.py b/backend/server/forms.py similarity index 100% rename from app/server/forms.py rename to backend/server/forms.py diff --git a/app/server/middleware.py b/backend/server/middleware.py similarity index 100% rename from app/server/middleware.py rename to backend/server/middleware.py diff --git a/app/server/tests/__init__.py b/backend/server/migrations/__init__.py similarity index 100% rename from app/server/tests/__init__.py rename to backend/server/migrations/__init__.py diff --git a/app/server/social_auth.py b/backend/server/social_auth.py similarity index 100% rename from app/server/social_auth.py rename to backend/server/social_auth.py diff --git a/app/server/static/.eslintrc b/backend/server/static/.eslintrc similarity index 100% rename from app/server/static/.eslintrc rename to backend/server/static/.eslintrc diff --git a/app/server/static/.jsbeautifyrc b/backend/server/static/.jsbeautifyrc similarity index 100% rename from app/server/static/.jsbeautifyrc rename to backend/server/static/.jsbeautifyrc diff --git a/app/server/static/.pug-lintrc b/backend/server/static/.pug-lintrc similarity index 100% rename from app/server/static/.pug-lintrc rename to backend/server/static/.pug-lintrc diff --git a/app/server/static/assets/css/admin.css b/backend/server/static/assets/css/admin.css similarity index 100% rename from app/server/static/assets/css/admin.css rename to backend/server/static/assets/css/admin.css diff --git a/app/server/static/assets/css/annotation.css b/backend/server/static/assets/css/annotation.css similarity index 100% rename from app/server/static/assets/css/annotation.css rename to backend/server/static/assets/css/annotation.css diff --git a/app/server/static/assets/css/forum.css b/backend/server/static/assets/css/forum.css similarity index 100% rename from app/server/static/assets/css/forum.css rename to backend/server/static/assets/css/forum.css diff --git a/app/server/static/assets/images/cat.png b/backend/server/static/assets/images/cat.png similarity index 100% rename from app/server/static/assets/images/cat.png rename to backend/server/static/assets/images/cat.png diff --git a/app/server/static/assets/images/cats/seq2seq.jpg b/backend/server/static/assets/images/cats/seq2seq.jpg similarity index 100% rename from app/server/static/assets/images/cats/seq2seq.jpg rename to backend/server/static/assets/images/cats/seq2seq.jpg diff --git a/app/server/static/assets/images/cats/sequence_labeling.jpg b/backend/server/static/assets/images/cats/sequence_labeling.jpg similarity index 100% rename from app/server/static/assets/images/cats/sequence_labeling.jpg rename to backend/server/static/assets/images/cats/sequence_labeling.jpg diff --git a/app/server/static/assets/images/cats/speech2text.jpg b/backend/server/static/assets/images/cats/speech2text.jpg similarity index 100% rename from app/server/static/assets/images/cats/speech2text.jpg rename to backend/server/static/assets/images/cats/speech2text.jpg diff --git a/app/server/static/assets/images/cats/text_classification.jpg b/backend/server/static/assets/images/cats/text_classification.jpg similarity index 100% rename from app/server/static/assets/images/cats/text_classification.jpg rename to backend/server/static/assets/images/cats/text_classification.jpg diff --git a/app/server/static/assets/images/logo.png b/backend/server/static/assets/images/logo.png similarity index 100% rename from app/server/static/assets/images/logo.png rename to backend/server/static/assets/images/logo.png diff --git a/app/server/static/assets/images/named_entity_recognition.png b/backend/server/static/assets/images/named_entity_recognition.png similarity index 100% rename from app/server/static/assets/images/named_entity_recognition.png rename to backend/server/static/assets/images/named_entity_recognition.png diff --git a/app/server/static/assets/images/sentiment_analysis.png b/backend/server/static/assets/images/sentiment_analysis.png similarity index 100% rename from app/server/static/assets/images/sentiment_analysis.png rename to backend/server/static/assets/images/sentiment_analysis.png diff --git a/app/server/static/assets/images/sequence_labeling.png b/backend/server/static/assets/images/sequence_labeling.png similarity index 100% rename from app/server/static/assets/images/sequence_labeling.png rename to backend/server/static/assets/images/sequence_labeling.png diff --git a/app/server/static/assets/images/translation.png b/backend/server/static/assets/images/translation.png similarity index 100% rename from app/server/static/assets/images/translation.png rename to backend/server/static/assets/images/translation.png diff --git a/app/server/static/components/annotation.pug b/backend/server/static/components/annotation.pug similarity index 100% rename from app/server/static/components/annotation.pug rename to backend/server/static/components/annotation.pug diff --git a/app/server/static/components/annotationMixin.js b/backend/server/static/components/annotationMixin.js similarity index 100% rename from app/server/static/components/annotationMixin.js rename to backend/server/static/components/annotationMixin.js diff --git a/app/server/static/components/annotator.vue b/backend/server/static/components/annotator.vue similarity index 100% rename from app/server/static/components/annotator.vue rename to backend/server/static/components/annotator.vue diff --git a/app/server/static/components/demo/demo_api.js b/backend/server/static/components/demo/demo_api.js similarity index 100% rename from app/server/static/components/demo/demo_api.js rename to backend/server/static/components/demo/demo_api.js diff --git a/app/server/static/components/demo/demo_data.js b/backend/server/static/components/demo/demo_data.js similarity index 100% rename from app/server/static/components/demo/demo_data.js rename to backend/server/static/components/demo/demo_data.js diff --git a/app/server/static/components/directives.js b/backend/server/static/components/directives.js similarity index 100% rename from app/server/static/components/directives.js rename to backend/server/static/components/directives.js diff --git a/app/server/static/components/document_classification.vue b/backend/server/static/components/document_classification.vue similarity index 100% rename from app/server/static/components/document_classification.vue rename to backend/server/static/components/document_classification.vue diff --git a/app/server/static/components/download.pug b/backend/server/static/components/download.pug similarity index 100% rename from app/server/static/components/download.pug rename to backend/server/static/components/download.pug diff --git a/app/server/static/components/download_seq2seq.vue b/backend/server/static/components/download_seq2seq.vue similarity index 100% rename from app/server/static/components/download_seq2seq.vue rename to backend/server/static/components/download_seq2seq.vue diff --git a/app/server/static/components/download_sequence_labeling.vue b/backend/server/static/components/download_sequence_labeling.vue similarity index 100% rename from app/server/static/components/download_sequence_labeling.vue rename to backend/server/static/components/download_sequence_labeling.vue diff --git a/app/server/static/components/download_speech2text.vue b/backend/server/static/components/download_speech2text.vue similarity index 100% rename from app/server/static/components/download_speech2text.vue rename to backend/server/static/components/download_speech2text.vue diff --git a/app/server/static/components/download_text_classification.vue b/backend/server/static/components/download_text_classification.vue similarity index 100% rename from app/server/static/components/download_text_classification.vue rename to backend/server/static/components/download_text_classification.vue diff --git a/app/server/static/components/examples/download_seq2seq.csv b/backend/server/static/components/examples/download_seq2seq.csv similarity index 100% rename from app/server/static/components/examples/download_seq2seq.csv rename to backend/server/static/components/examples/download_seq2seq.csv diff --git a/app/server/static/components/examples/download_seq2seq.jsonl b/backend/server/static/components/examples/download_seq2seq.jsonl similarity index 100% rename from app/server/static/components/examples/download_seq2seq.jsonl rename to backend/server/static/components/examples/download_seq2seq.jsonl diff --git a/app/server/static/components/examples/download_sequence_labeling.json1l b/backend/server/static/components/examples/download_sequence_labeling.json1l similarity index 100% rename from app/server/static/components/examples/download_sequence_labeling.json1l rename to backend/server/static/components/examples/download_sequence_labeling.json1l diff --git a/app/server/static/components/examples/download_sequence_labeling.jsonl b/backend/server/static/components/examples/download_sequence_labeling.jsonl similarity index 100% rename from app/server/static/components/examples/download_sequence_labeling.jsonl rename to backend/server/static/components/examples/download_sequence_labeling.jsonl diff --git a/app/server/static/components/examples/download_speech2text.jsonl b/backend/server/static/components/examples/download_speech2text.jsonl similarity index 100% rename from app/server/static/components/examples/download_speech2text.jsonl rename to backend/server/static/components/examples/download_speech2text.jsonl diff --git a/app/server/static/components/examples/download_text_classification.csv b/backend/server/static/components/examples/download_text_classification.csv similarity index 100% rename from app/server/static/components/examples/download_text_classification.csv rename to backend/server/static/components/examples/download_text_classification.csv diff --git a/app/server/static/components/examples/download_text_classification.jsonl b/backend/server/static/components/examples/download_text_classification.jsonl similarity index 100% rename from app/server/static/components/examples/download_text_classification.jsonl rename to backend/server/static/components/examples/download_text_classification.jsonl diff --git a/app/server/static/components/examples/upload_seq2seq.csv b/backend/server/static/components/examples/upload_seq2seq.csv similarity index 100% rename from app/server/static/components/examples/upload_seq2seq.csv rename to backend/server/static/components/examples/upload_seq2seq.csv diff --git a/app/server/static/components/examples/upload_seq2seq.jsonl b/backend/server/static/components/examples/upload_seq2seq.jsonl similarity index 100% rename from app/server/static/components/examples/upload_seq2seq.jsonl rename to backend/server/static/components/examples/upload_seq2seq.jsonl diff --git a/app/server/static/components/examples/upload_seq2seq.txt b/backend/server/static/components/examples/upload_seq2seq.txt similarity index 100% rename from app/server/static/components/examples/upload_seq2seq.txt rename to backend/server/static/components/examples/upload_seq2seq.txt diff --git a/app/server/static/components/examples/upload_seq2seq.xlsx b/backend/server/static/components/examples/upload_seq2seq.xlsx similarity index 100% rename from app/server/static/components/examples/upload_seq2seq.xlsx rename to backend/server/static/components/examples/upload_seq2seq.xlsx diff --git a/app/server/static/components/examples/upload_sequence_labeling.conll b/backend/server/static/components/examples/upload_sequence_labeling.conll similarity index 100% rename from app/server/static/components/examples/upload_sequence_labeling.conll rename to backend/server/static/components/examples/upload_sequence_labeling.conll diff --git a/app/server/static/components/examples/upload_sequence_labeling.jsonl b/backend/server/static/components/examples/upload_sequence_labeling.jsonl similarity index 100% rename from app/server/static/components/examples/upload_sequence_labeling.jsonl rename to backend/server/static/components/examples/upload_sequence_labeling.jsonl diff --git a/app/server/static/components/examples/upload_sequence_labeling.txt b/backend/server/static/components/examples/upload_sequence_labeling.txt similarity index 100% rename from app/server/static/components/examples/upload_sequence_labeling.txt rename to backend/server/static/components/examples/upload_sequence_labeling.txt diff --git a/app/server/static/components/examples/upload_speech2text.jsonl b/backend/server/static/components/examples/upload_speech2text.jsonl similarity index 100% rename from app/server/static/components/examples/upload_speech2text.jsonl rename to backend/server/static/components/examples/upload_speech2text.jsonl diff --git a/app/server/static/components/examples/upload_text_classification.csv b/backend/server/static/components/examples/upload_text_classification.csv similarity index 100% rename from app/server/static/components/examples/upload_text_classification.csv rename to backend/server/static/components/examples/upload_text_classification.csv diff --git a/app/server/static/components/examples/upload_text_classification.jsonl b/backend/server/static/components/examples/upload_text_classification.jsonl similarity index 100% rename from app/server/static/components/examples/upload_text_classification.jsonl rename to backend/server/static/components/examples/upload_text_classification.jsonl diff --git a/app/server/static/components/examples/upload_text_classification.txt b/backend/server/static/components/examples/upload_text_classification.txt similarity index 100% rename from app/server/static/components/examples/upload_text_classification.txt rename to backend/server/static/components/examples/upload_text_classification.txt diff --git a/app/server/static/components/examples/upload_text_classification.xlsx b/backend/server/static/components/examples/upload_text_classification.xlsx similarity index 100% rename from app/server/static/components/examples/upload_text_classification.xlsx rename to backend/server/static/components/examples/upload_text_classification.xlsx diff --git a/app/server/static/components/filter.js b/backend/server/static/components/filter.js similarity index 100% rename from app/server/static/components/filter.js rename to backend/server/static/components/filter.js diff --git a/app/server/static/components/guideline.vue b/backend/server/static/components/guideline.vue similarity index 100% rename from app/server/static/components/guideline.vue rename to backend/server/static/components/guideline.vue diff --git a/app/server/static/components/hljsLanguages.js b/backend/server/static/components/hljsLanguages.js similarity index 100% rename from app/server/static/components/hljsLanguages.js rename to backend/server/static/components/hljsLanguages.js diff --git a/app/server/static/components/http.js b/backend/server/static/components/http.js similarity index 100% rename from app/server/static/components/http.js rename to backend/server/static/components/http.js diff --git a/app/server/static/components/label.vue b/backend/server/static/components/label.vue similarity index 100% rename from app/server/static/components/label.vue rename to backend/server/static/components/label.vue diff --git a/app/server/static/components/messages.vue b/backend/server/static/components/messages.vue similarity index 100% rename from app/server/static/components/messages.vue rename to backend/server/static/components/messages.vue diff --git a/app/server/static/components/preview.vue b/backend/server/static/components/preview.vue similarity index 100% rename from app/server/static/components/preview.vue rename to backend/server/static/components/preview.vue diff --git a/app/server/static/components/projects.vue b/backend/server/static/components/projects.vue similarity index 100% rename from app/server/static/components/projects.vue rename to backend/server/static/components/projects.vue diff --git a/app/server/static/components/seq2seq.vue b/backend/server/static/components/seq2seq.vue similarity index 100% rename from app/server/static/components/seq2seq.vue rename to backend/server/static/components/seq2seq.vue diff --git a/app/server/static/components/sequence_labeling.vue b/backend/server/static/components/sequence_labeling.vue similarity index 100% rename from app/server/static/components/sequence_labeling.vue rename to backend/server/static/components/sequence_labeling.vue diff --git a/app/server/static/components/speech2text.vue b/backend/server/static/components/speech2text.vue similarity index 100% rename from app/server/static/components/speech2text.vue rename to backend/server/static/components/speech2text.vue diff --git a/app/server/static/components/stats.vue b/backend/server/static/components/stats.vue similarity index 100% rename from app/server/static/components/stats.vue rename to backend/server/static/components/stats.vue diff --git a/app/server/static/components/upload.pug b/backend/server/static/components/upload.pug similarity index 100% rename from app/server/static/components/upload.pug rename to backend/server/static/components/upload.pug diff --git a/app/server/static/components/uploadMixin.js b/backend/server/static/components/uploadMixin.js similarity index 100% rename from app/server/static/components/uploadMixin.js rename to backend/server/static/components/uploadMixin.js diff --git a/app/server/static/components/upload_seq2seq.vue b/backend/server/static/components/upload_seq2seq.vue similarity index 100% rename from app/server/static/components/upload_seq2seq.vue rename to backend/server/static/components/upload_seq2seq.vue diff --git a/app/server/static/components/upload_sequence_labeling.vue b/backend/server/static/components/upload_sequence_labeling.vue similarity index 100% rename from app/server/static/components/upload_sequence_labeling.vue rename to backend/server/static/components/upload_sequence_labeling.vue diff --git a/app/server/static/components/upload_speech2text.vue b/backend/server/static/components/upload_speech2text.vue similarity index 100% rename from app/server/static/components/upload_speech2text.vue rename to backend/server/static/components/upload_speech2text.vue diff --git a/app/server/static/components/upload_text_classification.vue b/backend/server/static/components/upload_text_classification.vue similarity index 100% rename from app/server/static/components/upload_text_classification.vue rename to backend/server/static/components/upload_text_classification.vue diff --git a/app/server/static/components/users.vue b/backend/server/static/components/users.vue similarity index 100% rename from app/server/static/components/users.vue rename to backend/server/static/components/users.vue diff --git a/app/server/static/package-lock.json b/backend/server/static/package-lock.json similarity index 100% rename from app/server/static/package-lock.json rename to backend/server/static/package-lock.json diff --git a/app/server/static/package.json b/backend/server/static/package.json similarity index 100% rename from app/server/static/package.json rename to backend/server/static/package.json diff --git a/app/server/static/pages/dataset.js b/backend/server/static/pages/dataset.js similarity index 100% rename from app/server/static/pages/dataset.js rename to backend/server/static/pages/dataset.js diff --git a/app/server/static/pages/demo_named_entity.js b/backend/server/static/pages/demo_named_entity.js similarity index 100% rename from app/server/static/pages/demo_named_entity.js rename to backend/server/static/pages/demo_named_entity.js diff --git a/app/server/static/pages/demo_text_classification.js b/backend/server/static/pages/demo_text_classification.js similarity index 100% rename from app/server/static/pages/demo_text_classification.js rename to backend/server/static/pages/demo_text_classification.js diff --git a/app/server/static/pages/demo_translation.js b/backend/server/static/pages/demo_translation.js similarity index 100% rename from app/server/static/pages/demo_translation.js rename to backend/server/static/pages/demo_translation.js diff --git a/app/server/static/pages/document_classification.js b/backend/server/static/pages/document_classification.js similarity index 100% rename from app/server/static/pages/document_classification.js rename to backend/server/static/pages/document_classification.js diff --git a/app/server/static/pages/download_seq2seq.js b/backend/server/static/pages/download_seq2seq.js similarity index 100% rename from app/server/static/pages/download_seq2seq.js rename to backend/server/static/pages/download_seq2seq.js diff --git a/app/server/static/pages/download_sequence_labeling.js b/backend/server/static/pages/download_sequence_labeling.js similarity index 100% rename from app/server/static/pages/download_sequence_labeling.js rename to backend/server/static/pages/download_sequence_labeling.js diff --git a/app/server/static/pages/download_speech2text.js b/backend/server/static/pages/download_speech2text.js similarity index 100% rename from app/server/static/pages/download_speech2text.js rename to backend/server/static/pages/download_speech2text.js diff --git a/app/server/static/pages/download_text_classification.js b/backend/server/static/pages/download_text_classification.js similarity index 100% rename from app/server/static/pages/download_text_classification.js rename to backend/server/static/pages/download_text_classification.js diff --git a/app/server/static/pages/guideline.js b/backend/server/static/pages/guideline.js similarity index 100% rename from app/server/static/pages/guideline.js rename to backend/server/static/pages/guideline.js diff --git a/app/server/static/pages/index.js b/backend/server/static/pages/index.js similarity index 100% rename from app/server/static/pages/index.js rename to backend/server/static/pages/index.js diff --git a/app/server/static/pages/label.js b/backend/server/static/pages/label.js similarity index 100% rename from app/server/static/pages/label.js rename to backend/server/static/pages/label.js diff --git a/app/server/static/pages/projects.js b/backend/server/static/pages/projects.js similarity index 100% rename from app/server/static/pages/projects.js rename to backend/server/static/pages/projects.js diff --git a/app/server/static/pages/seq2seq.js b/backend/server/static/pages/seq2seq.js similarity index 100% rename from app/server/static/pages/seq2seq.js rename to backend/server/static/pages/seq2seq.js diff --git a/app/server/static/pages/sequence_labeling.js b/backend/server/static/pages/sequence_labeling.js similarity index 100% rename from app/server/static/pages/sequence_labeling.js rename to backend/server/static/pages/sequence_labeling.js diff --git a/app/server/static/pages/speech2text.js b/backend/server/static/pages/speech2text.js similarity index 100% rename from app/server/static/pages/speech2text.js rename to backend/server/static/pages/speech2text.js diff --git a/app/server/static/pages/stats.js b/backend/server/static/pages/stats.js similarity index 100% rename from app/server/static/pages/stats.js rename to backend/server/static/pages/stats.js diff --git a/app/server/static/pages/upload_seq2seq.js b/backend/server/static/pages/upload_seq2seq.js similarity index 100% rename from app/server/static/pages/upload_seq2seq.js rename to backend/server/static/pages/upload_seq2seq.js diff --git a/app/server/static/pages/upload_sequence_labeling.js b/backend/server/static/pages/upload_sequence_labeling.js similarity index 100% rename from app/server/static/pages/upload_sequence_labeling.js rename to backend/server/static/pages/upload_sequence_labeling.js diff --git a/app/server/static/pages/upload_speech2text.js b/backend/server/static/pages/upload_speech2text.js similarity index 100% rename from app/server/static/pages/upload_speech2text.js rename to backend/server/static/pages/upload_speech2text.js diff --git a/app/server/static/pages/upload_text_classification.js b/backend/server/static/pages/upload_text_classification.js similarity index 100% rename from app/server/static/pages/upload_text_classification.js rename to backend/server/static/pages/upload_text_classification.js diff --git a/app/server/static/pages/users.js b/backend/server/static/pages/users.js similarity index 100% rename from app/server/static/pages/users.js rename to backend/server/static/pages/users.js diff --git a/app/server/static/static/android-icon-144x144.png b/backend/server/static/static/android-icon-144x144.png similarity index 100% rename from app/server/static/static/android-icon-144x144.png rename to backend/server/static/static/android-icon-144x144.png diff --git a/app/server/static/static/android-icon-192x192.png b/backend/server/static/static/android-icon-192x192.png similarity index 100% rename from app/server/static/static/android-icon-192x192.png rename to backend/server/static/static/android-icon-192x192.png diff --git a/app/server/static/static/android-icon-36x36.png b/backend/server/static/static/android-icon-36x36.png similarity index 100% rename from app/server/static/static/android-icon-36x36.png rename to backend/server/static/static/android-icon-36x36.png diff --git a/app/server/static/static/android-icon-48x48.png b/backend/server/static/static/android-icon-48x48.png similarity index 100% rename from app/server/static/static/android-icon-48x48.png rename to backend/server/static/static/android-icon-48x48.png diff --git a/app/server/static/static/android-icon-72x72.png b/backend/server/static/static/android-icon-72x72.png similarity index 100% rename from app/server/static/static/android-icon-72x72.png rename to backend/server/static/static/android-icon-72x72.png diff --git a/app/server/static/static/android-icon-96x96.png b/backend/server/static/static/android-icon-96x96.png similarity index 100% rename from app/server/static/static/android-icon-96x96.png rename to backend/server/static/static/android-icon-96x96.png diff --git a/app/server/static/static/apple-icon-114x114.png b/backend/server/static/static/apple-icon-114x114.png similarity index 100% rename from app/server/static/static/apple-icon-114x114.png rename to backend/server/static/static/apple-icon-114x114.png diff --git a/app/server/static/static/apple-icon-120x120.png b/backend/server/static/static/apple-icon-120x120.png similarity index 100% rename from app/server/static/static/apple-icon-120x120.png rename to backend/server/static/static/apple-icon-120x120.png diff --git a/app/server/static/static/apple-icon-144x144.png b/backend/server/static/static/apple-icon-144x144.png similarity index 100% rename from app/server/static/static/apple-icon-144x144.png rename to backend/server/static/static/apple-icon-144x144.png diff --git a/app/server/static/static/apple-icon-152x152.png b/backend/server/static/static/apple-icon-152x152.png similarity index 100% rename from app/server/static/static/apple-icon-152x152.png rename to backend/server/static/static/apple-icon-152x152.png diff --git a/app/server/static/static/apple-icon-180x180.png b/backend/server/static/static/apple-icon-180x180.png similarity index 100% rename from app/server/static/static/apple-icon-180x180.png rename to backend/server/static/static/apple-icon-180x180.png diff --git a/app/server/static/static/apple-icon-57x57.png b/backend/server/static/static/apple-icon-57x57.png similarity index 100% rename from app/server/static/static/apple-icon-57x57.png rename to backend/server/static/static/apple-icon-57x57.png diff --git a/app/server/static/static/apple-icon-60x60.png b/backend/server/static/static/apple-icon-60x60.png similarity index 100% rename from app/server/static/static/apple-icon-60x60.png rename to backend/server/static/static/apple-icon-60x60.png diff --git a/app/server/static/static/apple-icon-72x72.png b/backend/server/static/static/apple-icon-72x72.png similarity index 100% rename from app/server/static/static/apple-icon-72x72.png rename to backend/server/static/static/apple-icon-72x72.png diff --git a/app/server/static/static/apple-icon-76x76.png b/backend/server/static/static/apple-icon-76x76.png similarity index 100% rename from app/server/static/static/apple-icon-76x76.png rename to backend/server/static/static/apple-icon-76x76.png diff --git a/app/server/static/static/apple-icon-precomposed.png b/backend/server/static/static/apple-icon-precomposed.png similarity index 100% rename from app/server/static/static/apple-icon-precomposed.png rename to backend/server/static/static/apple-icon-precomposed.png diff --git a/app/server/static/static/apple-icon.png b/backend/server/static/static/apple-icon.png similarity index 100% rename from app/server/static/static/apple-icon.png rename to backend/server/static/static/apple-icon.png diff --git a/app/server/static/static/browserconfig.xml b/backend/server/static/static/browserconfig.xml similarity index 100% rename from app/server/static/static/browserconfig.xml rename to backend/server/static/static/browserconfig.xml diff --git a/app/server/static/static/favicon-16x16.png b/backend/server/static/static/favicon-16x16.png similarity index 100% rename from app/server/static/static/favicon-16x16.png rename to backend/server/static/static/favicon-16x16.png diff --git a/app/server/static/static/favicon-32x32.png b/backend/server/static/static/favicon-32x32.png similarity index 100% rename from app/server/static/static/favicon-32x32.png rename to backend/server/static/static/favicon-32x32.png diff --git a/app/server/static/static/favicon-96x96.png b/backend/server/static/static/favicon-96x96.png similarity index 100% rename from app/server/static/static/favicon-96x96.png rename to backend/server/static/static/favicon-96x96.png diff --git a/app/server/static/static/favicon.ico b/backend/server/static/static/favicon.ico similarity index 100% rename from app/server/static/static/favicon.ico rename to backend/server/static/static/favicon.ico diff --git a/app/server/static/static/manifest.json b/backend/server/static/static/manifest.json similarity index 100% rename from app/server/static/static/manifest.json rename to backend/server/static/static/manifest.json diff --git a/app/server/static/static/ms-icon-144x144.png b/backend/server/static/static/ms-icon-144x144.png similarity index 100% rename from app/server/static/static/ms-icon-144x144.png rename to backend/server/static/static/ms-icon-144x144.png diff --git a/app/server/static/static/ms-icon-150x150.png b/backend/server/static/static/ms-icon-150x150.png similarity index 100% rename from app/server/static/static/ms-icon-150x150.png rename to backend/server/static/static/ms-icon-150x150.png diff --git a/app/server/static/static/ms-icon-310x310.png b/backend/server/static/static/ms-icon-310x310.png similarity index 100% rename from app/server/static/static/ms-icon-310x310.png rename to backend/server/static/static/ms-icon-310x310.png diff --git a/app/server/static/static/ms-icon-70x70.png b/backend/server/static/static/ms-icon-70x70.png similarity index 100% rename from app/server/static/static/ms-icon-70x70.png rename to backend/server/static/static/ms-icon-70x70.png diff --git a/app/server/static/webpack.config.js b/backend/server/static/webpack.config.js similarity index 100% rename from app/server/static/webpack.config.js rename to backend/server/static/webpack.config.js diff --git a/app/server/templates/admin.html b/backend/server/templates/admin.html similarity index 100% rename from app/server/templates/admin.html rename to backend/server/templates/admin.html diff --git a/app/server/templates/annotation.html b/backend/server/templates/annotation.html similarity index 100% rename from app/server/templates/annotation.html rename to backend/server/templates/annotation.html diff --git a/app/server/templates/base.html b/backend/server/templates/base.html similarity index 100% rename from app/server/templates/base.html rename to backend/server/templates/base.html diff --git a/app/server/templates/dataset.html b/backend/server/templates/dataset.html similarity index 100% rename from app/server/templates/dataset.html rename to backend/server/templates/dataset.html diff --git a/app/server/templates/index.html b/backend/server/templates/index.html similarity index 100% rename from app/server/templates/index.html rename to backend/server/templates/index.html diff --git a/app/server/templates/login.html b/backend/server/templates/login.html similarity index 100% rename from app/server/templates/login.html rename to backend/server/templates/login.html diff --git a/app/server/templates/projects.html b/backend/server/templates/projects.html similarity index 100% rename from app/server/templates/projects.html rename to backend/server/templates/projects.html diff --git a/app/server/templates/tags/azure_appinsights.html b/backend/server/templates/tags/azure_appinsights.html similarity index 100% rename from app/server/templates/tags/azure_appinsights.html rename to backend/server/templates/tags/azure_appinsights.html diff --git a/app/server/templates/tags/google_analytics.html b/backend/server/templates/tags/google_analytics.html similarity index 100% rename from app/server/templates/tags/google_analytics.html rename to backend/server/templates/tags/google_analytics.html diff --git a/backend/server/templatetags/__init__.py b/backend/server/templatetags/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/app/server/templatetags/analytics.py b/backend/server/templatetags/analytics.py similarity index 100% rename from app/server/templatetags/analytics.py rename to backend/server/templatetags/analytics.py diff --git a/backend/server/tests/__init__.py b/backend/server/tests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/app/server/tests/cassettes/TestAzureADTenantSocialAuth.test_fetch_permissions_is_admin.yaml b/backend/server/tests/cassettes/TestAzureADTenantSocialAuth.test_fetch_permissions_is_admin.yaml similarity index 100% rename from app/server/tests/cassettes/TestAzureADTenantSocialAuth.test_fetch_permissions_is_admin.yaml rename to backend/server/tests/cassettes/TestAzureADTenantSocialAuth.test_fetch_permissions_is_admin.yaml diff --git a/app/server/tests/cassettes/TestAzureADTenantSocialAuth.test_fetch_permissions_not_admin.yaml b/backend/server/tests/cassettes/TestAzureADTenantSocialAuth.test_fetch_permissions_not_admin.yaml similarity index 100% rename from app/server/tests/cassettes/TestAzureADTenantSocialAuth.test_fetch_permissions_not_admin.yaml rename to backend/server/tests/cassettes/TestAzureADTenantSocialAuth.test_fetch_permissions_not_admin.yaml diff --git a/app/server/tests/cassettes/TestGithubSocialAuth.test_fetch_permissions_is_admin.yaml b/backend/server/tests/cassettes/TestGithubSocialAuth.test_fetch_permissions_is_admin.yaml similarity index 100% rename from app/server/tests/cassettes/TestGithubSocialAuth.test_fetch_permissions_is_admin.yaml rename to backend/server/tests/cassettes/TestGithubSocialAuth.test_fetch_permissions_is_admin.yaml diff --git a/app/server/tests/cassettes/TestGithubSocialAuth.test_fetch_permissions_not_admin.yaml b/backend/server/tests/cassettes/TestGithubSocialAuth.test_fetch_permissions_not_admin.yaml similarity index 100% rename from app/server/tests/cassettes/TestGithubSocialAuth.test_fetch_permissions_not_admin.yaml rename to backend/server/tests/cassettes/TestGithubSocialAuth.test_fetch_permissions_not_admin.yaml diff --git a/app/server/tests/cassettes/TestOktaOAuth2SocialAuth.test_fetch_permissions_is_admin.yaml b/backend/server/tests/cassettes/TestOktaOAuth2SocialAuth.test_fetch_permissions_is_admin.yaml similarity index 100% rename from app/server/tests/cassettes/TestOktaOAuth2SocialAuth.test_fetch_permissions_is_admin.yaml rename to backend/server/tests/cassettes/TestOktaOAuth2SocialAuth.test_fetch_permissions_is_admin.yaml diff --git a/app/server/tests/cassettes/TestOktaOAuth2SocialAuth.test_fetch_permissions_not_admin.yaml b/backend/server/tests/cassettes/TestOktaOAuth2SocialAuth.test_fetch_permissions_not_admin.yaml similarity index 100% rename from app/server/tests/cassettes/TestOktaOAuth2SocialAuth.test_fetch_permissions_not_admin.yaml rename to backend/server/tests/cassettes/TestOktaOAuth2SocialAuth.test_fetch_permissions_not_admin.yaml diff --git a/app/server/tests/cassettes/TestOktaOpenIdConnectSocialAuth.test_fetch_permissions_is_admin.yaml b/backend/server/tests/cassettes/TestOktaOpenIdConnectSocialAuth.test_fetch_permissions_is_admin.yaml similarity index 100% rename from app/server/tests/cassettes/TestOktaOpenIdConnectSocialAuth.test_fetch_permissions_is_admin.yaml rename to backend/server/tests/cassettes/TestOktaOpenIdConnectSocialAuth.test_fetch_permissions_is_admin.yaml diff --git a/app/server/tests/cassettes/TestOktaOpenIdConnectSocialAuth.test_fetch_permissions_not_admin.yaml b/backend/server/tests/cassettes/TestOktaOpenIdConnectSocialAuth.test_fetch_permissions_not_admin.yaml similarity index 100% rename from app/server/tests/cassettes/TestOktaOpenIdConnectSocialAuth.test_fetch_permissions_not_admin.yaml rename to backend/server/tests/cassettes/TestOktaOpenIdConnectSocialAuth.test_fetch_permissions_not_admin.yaml diff --git a/app/server/tests/test_middleware.py b/backend/server/tests/test_middleware.py similarity index 100% rename from app/server/tests/test_middleware.py rename to backend/server/tests/test_middleware.py diff --git a/app/server/tests/test_social_auth.py b/backend/server/tests/test_social_auth.py similarity index 100% rename from app/server/tests/test_social_auth.py rename to backend/server/tests/test_social_auth.py diff --git a/app/server/urls.py b/backend/server/urls.py similarity index 100% rename from app/server/urls.py rename to backend/server/urls.py diff --git a/app/server/views.py b/backend/server/views.py similarity index 100% rename from app/server/views.py rename to backend/server/views.py diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index d6657c3b..1cafd404 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -4,7 +4,7 @@ services: backend: build: context: . - dockerfile: app/Dockerfile.dev + dockerfile: backend/Dockerfile.dev volumes: - .:/src - venv:/root/.local/share @@ -27,7 +27,7 @@ services: celery: build: context: . - dockerfile: app/Dockerfile.dev + dockerfile: backend/Dockerfile.dev volumes: - .:/src - venv:/root/.local/share diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index a136bc79..ad609882 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -4,10 +4,10 @@ services: backend: build: context: . - dockerfile: app/Dockerfile.prod + dockerfile: backend/Dockerfile.prod volumes: - - static_volume:/app/staticfiles - - media:/app/media + - static_volume:/backend/staticfiles + - media:/backend/media environment: ADMIN_USERNAME: "admin" ADMIN_PASSWORD: "password" @@ -25,9 +25,9 @@ services: celery: build: context: . - dockerfile: app/Dockerfile.prod + dockerfile: backend/Dockerfile.prod volumes: - - media:/app/media + - media:/backend/media entrypoint: ["/opt/bin/prod-celery.sh"] environment: PYTHONUNBUFFERED: "1" diff --git a/frontend/components/project/FormUpdate.vue b/frontend/components/project/FormUpdate.vue index f7cb8c91..90b92211 100644 --- a/frontend/components/project/FormUpdate.vue +++ b/frontend/components/project/FormUpdate.vue @@ -116,7 +116,7 @@ v-model="tagInput" clearable prepend-icon="add_circle" - v-on:keyup.enter="addTag()" + @keyup.enter="addTag()" @click:prepend="addTag()"> diff --git a/setup.py b/setup.py index 1b7b73e7..63b3e1b2 100644 --- a/setup.py +++ b/setup.py @@ -41,6 +41,7 @@ required = [ 'django-celery-results>=2.0.1', 'django-drf-filepond>=0.3.0', 'sqlalchemy>=1.4.7', + 'gunicorn>=20.1.0', ] setup( @@ -56,7 +57,7 @@ setup( packages=find_packages(exclude=('*.tests',)), entry_points={ 'console_scripts': [ - 'doccano = app.cli:main' + 'doccano = backend.cli:main' ] }, install_requires=required, diff --git a/tools/dev-celery.sh b/tools/dev-celery.sh index 4f5a61a1..1c933daf 100755 --- a/tools/dev-celery.sh +++ b/tools/dev-celery.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o errexit -app="/src/app" +app="/src/backend" cd app ( diff --git a/tools/dev-django.sh b/tools/dev-django.sh index 3a2279fe..de8d16c2 100755 --- a/tools/dev-django.sh +++ b/tools/dev-django.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o errexit -app="/src/app" +app="/src/backend" echo "Initializing database" python "${app}/manage.py" wait_for_db diff --git a/tools/heroku.sh b/tools/heroku.sh index 14b011cc..cae34ea5 100644 --- a/tools/heroku.sh +++ b/tools/heroku.sh @@ -3,5 +3,5 @@ set -o errexit if [ -n "$ADMIN_USER_NAME" ]; then - python /doccano/app/manage.py create_admin --noinput --username="$ADMIN_USER_NAME" --email="$ADMIN_CONTACT_EMAIL" --password="$ADMIN_PASSWORD" + python /doccano/backend/manage.py create_admin --noinput --username="$ADMIN_USER_NAME" --email="$ADMIN_CONTACT_EMAIL" --password="$ADMIN_PASSWORD" fi diff --git a/tools/prod-celery.sh b/tools/prod-celery.sh index 9d631467..46ec087b 100755 --- a/tools/prod-celery.sh +++ b/tools/prod-celery.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o errexit -cd /app +cd /backend ( echo "Waiting for database"