From 395b3f1e54386264e20e118ee7e6cb8ce1eca815 Mon Sep 17 00:00:00 2001 From: cami Date: Fri, 7 May 2021 02:16:54 +0200 Subject: [PATCH] Added backend and moved things --- .gitignore | 286 +++++++++++++++++- backend/__init__.py | 0 backend/__main__.py | 1 + backend/requirements.txt | 6 + .dockerignore => frontend/.dockerignore | 0 Dockerfile => frontend/Dockerfile | 0 Dockerfile.prod => frontend/Dockerfile.prod | 0 README.md => frontend/README.md | 0 .../docker-compose.prod.yml | 0 .../docker-compose.yml | 0 .../package-lock.json | 0 package.json => frontend/package.json | 0 {public => frontend/public}/favicon.ico | Bin {public => frontend/public}/index.html | 0 {public => frontend/public}/logo192.png | Bin {public => frontend/public}/logo512.png | Bin {public => frontend/public}/manifest.json | 0 {public => frontend/public}/robots.txt | 0 {src => frontend/src}/App.css | 0 {src => frontend/src}/App.js | 0 {src => frontend/src}/App.test.js | 0 {src => frontend/src}/HelloWorld.js | 0 {src => frontend/src}/index.css | 0 {src => frontend/src}/index.js | 0 {src => frontend/src}/logo.svg | 0 {src => frontend/src}/reportWebVitals.js | 0 {src => frontend/src}/setupTests.js | 0 27 files changed, 278 insertions(+), 15 deletions(-) create mode 100644 backend/__init__.py create mode 100644 backend/__main__.py create mode 100644 backend/requirements.txt rename .dockerignore => frontend/.dockerignore (100%) rename Dockerfile => frontend/Dockerfile (100%) rename Dockerfile.prod => frontend/Dockerfile.prod (100%) rename README.md => frontend/README.md (100%) rename docker-compose.prod.yml => frontend/docker-compose.prod.yml (100%) rename docker-compose.yml => frontend/docker-compose.yml (100%) rename package-lock.json => frontend/package-lock.json (100%) rename package.json => frontend/package.json (100%) rename {public => frontend/public}/favicon.ico (100%) rename {public => frontend/public}/index.html (100%) rename {public => frontend/public}/logo192.png (100%) rename {public => frontend/public}/logo512.png (100%) rename {public => frontend/public}/manifest.json (100%) rename {public => frontend/public}/robots.txt (100%) rename {src => frontend/src}/App.css (100%) rename {src => frontend/src}/App.js (100%) rename {src => frontend/src}/App.test.js (100%) rename {src => frontend/src}/HelloWorld.js (100%) rename {src => frontend/src}/index.css (100%) rename {src => frontend/src}/index.js (100%) rename {src => frontend/src}/logo.svg (100%) rename {src => frontend/src}/reportWebVitals.js (100%) rename {src => frontend/src}/setupTests.js (100%) diff --git a/.gitignore b/.gitignore index 4d29575..3c8fcae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,23 +1,279 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. +.idea/ +frontend/node_modules/ +frontend/build/ +run_production.sh +run_* +.env +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class -# dependencies -/node_modules -/.pnp -.pnp.js +# C extensions +*.so -# testing -/coverage +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +pip-wheel-metadata/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST -# production -/build +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec -# misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local +# Installer logs +pip-log.txt +pip-delete-this-directory.txt +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + + +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +# ---- Gradle +build/ +.gradle/ +.gradletasknamecache +classes/ +out/ + +# ---- Maven (in integration tests) +target/ + +# ---- IntelliJ IDEA +*.iws +*.iml +*.ipr +.idea/ +.attach_pid* +out/ + +# ---- VS Code +.vscode/ +*.code-workspace + +# Directories generated on build on Windows +bin/ +!sonar-application/src/main/assembly/elasticsearch/**/bin/ +!sonar-application/src/main/assembly/elasticsearch-patch/**/bin/ + +# npm logs npm-debug.log* +npm.tar.gz yarn-debug.log* yarn-error.log* + +# ---- Eclipse +.classpath +.project +.settings +.externalToolBuilders + +# ---- Mac OS X +.DS_Store +# Thumbnails +._* +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# ---- Windows +# Windows image file caches +Thumbs.db +# Folder config file +Desktop.ini + +# ---- Linux +.directory + +# ---- frontend +node/ +node_modules/ + +# ---- SonarQube +.sonar/ +.scannerwork/ + +# scripts patches, they are local to each developer +scripts/patches/*.* +scripts/patches/*license*.txt +!scripts/patches/debug_ce.sh +!scripts/patches/debug_web.sh +!scripts/patches/postgres.sh diff --git a/backend/__init__.py b/backend/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/backend/__main__.py b/backend/__main__.py new file mode 100644 index 0000000..97dcce5 --- /dev/null +++ b/backend/__main__.py @@ -0,0 +1 @@ +from __ diff --git a/backend/requirements.txt b/backend/requirements.txt new file mode 100644 index 0000000..e4c5de6 --- /dev/null +++ b/backend/requirements.txt @@ -0,0 +1,6 @@ +click==7.1.2 +Flask==1.1.2 +itsdangerous==1.1.0 +Jinja2==2.11.3 +MarkupSafe==1.1.1 +Werkzeug==1.0.1 diff --git a/.dockerignore b/frontend/.dockerignore similarity index 100% rename from .dockerignore rename to frontend/.dockerignore diff --git a/Dockerfile b/frontend/Dockerfile similarity index 100% rename from Dockerfile rename to frontend/Dockerfile diff --git a/Dockerfile.prod b/frontend/Dockerfile.prod similarity index 100% rename from Dockerfile.prod rename to frontend/Dockerfile.prod diff --git a/README.md b/frontend/README.md similarity index 100% rename from README.md rename to frontend/README.md diff --git a/docker-compose.prod.yml b/frontend/docker-compose.prod.yml similarity index 100% rename from docker-compose.prod.yml rename to frontend/docker-compose.prod.yml diff --git a/docker-compose.yml b/frontend/docker-compose.yml similarity index 100% rename from docker-compose.yml rename to frontend/docker-compose.yml diff --git a/package-lock.json b/frontend/package-lock.json similarity index 100% rename from package-lock.json rename to frontend/package-lock.json diff --git a/package.json b/frontend/package.json similarity index 100% rename from package.json rename to frontend/package.json diff --git a/public/favicon.ico b/frontend/public/favicon.ico similarity index 100% rename from public/favicon.ico rename to frontend/public/favicon.ico diff --git a/public/index.html b/frontend/public/index.html similarity index 100% rename from public/index.html rename to frontend/public/index.html diff --git a/public/logo192.png b/frontend/public/logo192.png similarity index 100% rename from public/logo192.png rename to frontend/public/logo192.png diff --git a/public/logo512.png b/frontend/public/logo512.png similarity index 100% rename from public/logo512.png rename to frontend/public/logo512.png diff --git a/public/manifest.json b/frontend/public/manifest.json similarity index 100% rename from public/manifest.json rename to frontend/public/manifest.json diff --git a/public/robots.txt b/frontend/public/robots.txt similarity index 100% rename from public/robots.txt rename to frontend/public/robots.txt diff --git a/src/App.css b/frontend/src/App.css similarity index 100% rename from src/App.css rename to frontend/src/App.css diff --git a/src/App.js b/frontend/src/App.js similarity index 100% rename from src/App.js rename to frontend/src/App.js diff --git a/src/App.test.js b/frontend/src/App.test.js similarity index 100% rename from src/App.test.js rename to frontend/src/App.test.js diff --git a/src/HelloWorld.js b/frontend/src/HelloWorld.js similarity index 100% rename from src/HelloWorld.js rename to frontend/src/HelloWorld.js diff --git a/src/index.css b/frontend/src/index.css similarity index 100% rename from src/index.css rename to frontend/src/index.css diff --git a/src/index.js b/frontend/src/index.js similarity index 100% rename from src/index.js rename to frontend/src/index.js diff --git a/src/logo.svg b/frontend/src/logo.svg similarity index 100% rename from src/logo.svg rename to frontend/src/logo.svg diff --git a/src/reportWebVitals.js b/frontend/src/reportWebVitals.js similarity index 100% rename from src/reportWebVitals.js rename to frontend/src/reportWebVitals.js diff --git a/src/setupTests.js b/frontend/src/setupTests.js similarity index 100% rename from src/setupTests.js rename to frontend/src/setupTests.js