├── .gitignore ├── .gitlab-ci.yml ├── .python-version ├── Readme.md ├── api ├── .dockerignore ├── .gitignore ├── Dockerfile ├── Dockerfile-prod ├── manage.py ├── migrations │ ├── README │ ├── alembic.ini │ ├── env.py │ ├── script.py.mako │ └── versions │ │ └── 3e36f657a477_initial_migration.py ├── project │ ├── __init__.py │ ├── config.py │ ├── db │ │ ├── Dockerfile │ │ └── create.sql │ ├── extensions │ │ ├── __init__.py │ │ └── logging.py │ └── modules │ │ ├── __init__.py │ │ ├── auth │ │ └── __init__.py │ │ ├── users │ │ ├── __init__.py │ │ └── models.py │ │ └── utils.py ├── requirements-dev.txt ├── requirements.txt └── setup.cfg ├── client ├── .dockerignore ├── .gitignore ├── Dockerfile ├── Dockerfile-prod ├── README.md ├── components │ ├── error-boundary.tsx │ ├── errors │ │ ├── five_hundred_error.tsx │ │ ├── four_zero_four_error.tsx │ │ └── index.ts │ └── layout │ │ ├── footer.tsx │ │ ├── header.tsx │ │ ├── index.ts │ │ ├── layout.tsx │ │ └── menu.tsx ├── next-env.d.ts ├── next.config.js ├── now.json ├── package-lock.json ├── package.json ├── pages │ ├── _app.tsx │ ├── _document.tsx │ ├── _error.tsx │ ├── components.tsx │ ├── index.tsx │ ├── login.tsx │ └── profile.tsx ├── services │ ├── api │ │ ├── api-config.ts │ │ ├── api-problem.ts │ │ ├── api.ts │ │ └── index.ts │ ├── auth.ts │ ├── index.ts │ ├── types.ts │ ├── users.ts │ └── utils.ts ├── state │ ├── index.ts │ ├── reducers │ │ ├── auth.ts │ │ └── index.ts │ └── state-provider.tsx ├── static │ └── styles │ │ └── style.css ├── tsconfig.json └── utils │ ├── auth.tsx │ └── index.ts ├── deploy.sh ├── docker-compose.ci.yml ├── docker-compose.prod.yml ├── docker-compose.yml ├── nginx ├── Dockerfile ├── dev.conf ├── nginx.conf └── prod.conf └── setup_env.sh /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/.gitlab-ci.yml -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | flask-react-docker-app 2 | -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/Readme.md -------------------------------------------------------------------------------- /api/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/.dockerignore -------------------------------------------------------------------------------- /api/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/.gitignore -------------------------------------------------------------------------------- /api/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/Dockerfile -------------------------------------------------------------------------------- /api/Dockerfile-prod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/Dockerfile-prod -------------------------------------------------------------------------------- /api/manage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/manage.py -------------------------------------------------------------------------------- /api/migrations/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /api/migrations/alembic.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/migrations/alembic.ini -------------------------------------------------------------------------------- /api/migrations/env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/migrations/env.py -------------------------------------------------------------------------------- /api/migrations/script.py.mako: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/migrations/script.py.mako -------------------------------------------------------------------------------- /api/migrations/versions/3e36f657a477_initial_migration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/migrations/versions/3e36f657a477_initial_migration.py -------------------------------------------------------------------------------- /api/project/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/project/__init__.py -------------------------------------------------------------------------------- /api/project/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/project/config.py -------------------------------------------------------------------------------- /api/project/db/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM postgres:11.1-alpine 2 | 3 | ADD create.sql /docker-entrypoint-initdb.d 4 | -------------------------------------------------------------------------------- /api/project/db/create.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/project/db/create.sql -------------------------------------------------------------------------------- /api/project/extensions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/project/extensions/__init__.py -------------------------------------------------------------------------------- /api/project/extensions/logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/project/extensions/logging.py -------------------------------------------------------------------------------- /api/project/modules/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/project/modules/__init__.py -------------------------------------------------------------------------------- /api/project/modules/auth/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/project/modules/auth/__init__.py -------------------------------------------------------------------------------- /api/project/modules/users/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/project/modules/users/__init__.py -------------------------------------------------------------------------------- /api/project/modules/users/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/project/modules/users/models.py -------------------------------------------------------------------------------- /api/project/modules/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/project/modules/utils.py -------------------------------------------------------------------------------- /api/requirements-dev.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/requirements-dev.txt -------------------------------------------------------------------------------- /api/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/requirements.txt -------------------------------------------------------------------------------- /api/setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/api/setup.cfg -------------------------------------------------------------------------------- /client/.dockerignore: -------------------------------------------------------------------------------- 1 | .next/ 2 | node_modules/ 3 | Dockerfile* 4 | -------------------------------------------------------------------------------- /client/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/.gitignore -------------------------------------------------------------------------------- /client/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/Dockerfile -------------------------------------------------------------------------------- /client/Dockerfile-prod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/Dockerfile-prod -------------------------------------------------------------------------------- /client/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/README.md -------------------------------------------------------------------------------- /client/components/error-boundary.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/components/error-boundary.tsx -------------------------------------------------------------------------------- /client/components/errors/five_hundred_error.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/components/errors/five_hundred_error.tsx -------------------------------------------------------------------------------- /client/components/errors/four_zero_four_error.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/components/errors/four_zero_four_error.tsx -------------------------------------------------------------------------------- /client/components/errors/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/components/errors/index.ts -------------------------------------------------------------------------------- /client/components/layout/footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/components/layout/footer.tsx -------------------------------------------------------------------------------- /client/components/layout/header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/components/layout/header.tsx -------------------------------------------------------------------------------- /client/components/layout/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/components/layout/index.ts -------------------------------------------------------------------------------- /client/components/layout/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/components/layout/layout.tsx -------------------------------------------------------------------------------- /client/components/layout/menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/components/layout/menu.tsx -------------------------------------------------------------------------------- /client/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/next-env.d.ts -------------------------------------------------------------------------------- /client/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/next.config.js -------------------------------------------------------------------------------- /client/now.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/now.json -------------------------------------------------------------------------------- /client/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/package-lock.json -------------------------------------------------------------------------------- /client/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/package.json -------------------------------------------------------------------------------- /client/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/pages/_app.tsx -------------------------------------------------------------------------------- /client/pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/pages/_document.tsx -------------------------------------------------------------------------------- /client/pages/_error.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/pages/_error.tsx -------------------------------------------------------------------------------- /client/pages/components.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/pages/components.tsx -------------------------------------------------------------------------------- /client/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/pages/index.tsx -------------------------------------------------------------------------------- /client/pages/login.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/pages/login.tsx -------------------------------------------------------------------------------- /client/pages/profile.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/pages/profile.tsx -------------------------------------------------------------------------------- /client/services/api/api-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/services/api/api-config.ts -------------------------------------------------------------------------------- /client/services/api/api-problem.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/services/api/api-problem.ts -------------------------------------------------------------------------------- /client/services/api/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/services/api/api.ts -------------------------------------------------------------------------------- /client/services/api/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./api"; 2 | -------------------------------------------------------------------------------- /client/services/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/services/auth.ts -------------------------------------------------------------------------------- /client/services/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/services/index.ts -------------------------------------------------------------------------------- /client/services/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/services/types.ts -------------------------------------------------------------------------------- /client/services/users.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/services/users.ts -------------------------------------------------------------------------------- /client/services/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/services/utils.ts -------------------------------------------------------------------------------- /client/state/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./state-provider"; 2 | -------------------------------------------------------------------------------- /client/state/reducers/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/state/reducers/auth.ts -------------------------------------------------------------------------------- /client/state/reducers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/state/reducers/index.ts -------------------------------------------------------------------------------- /client/state/state-provider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/state/state-provider.tsx -------------------------------------------------------------------------------- /client/static/styles/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/static/styles/style.css -------------------------------------------------------------------------------- /client/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/tsconfig.json -------------------------------------------------------------------------------- /client/utils/auth.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/utils/auth.tsx -------------------------------------------------------------------------------- /client/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/client/utils/index.ts -------------------------------------------------------------------------------- /deploy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/deploy.sh -------------------------------------------------------------------------------- /docker-compose.ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/docker-compose.ci.yml -------------------------------------------------------------------------------- /docker-compose.prod.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/docker-compose.prod.yml -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /nginx/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/nginx/Dockerfile -------------------------------------------------------------------------------- /nginx/dev.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/nginx/dev.conf -------------------------------------------------------------------------------- /nginx/nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/nginx/nginx.conf -------------------------------------------------------------------------------- /nginx/prod.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/nginx/prod.conf -------------------------------------------------------------------------------- /setup_env.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martindavid/flask-react-docker-app/HEAD/setup_env.sh --------------------------------------------------------------------------------