File tree Expand file tree Collapse file tree
{{cookiecutter.project_slug}} Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11rm -rf \{\{ cookiecutter.project_slug\}\} /.git
2- rm -rf \{\{ cookiecutter.project_slug\}\} /backend/app/Pipfile .lock
2+ rm -rf \{\{ cookiecutter.project_slug\}\} /backend/app/poetry .lock
33rm -rf \{\{ cookiecutter.project_slug\}\} /frontend/node_modules
44rm -rf \{\{ cookiecutter.project_slug\}\} /frontend/dist
55git checkout \{\{ cookiecutter.project_slug\}\} /README.md
Original file line number Diff line number Diff line change 11__pycache__
2+ app.egg-info
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ [tool .poetry ]
2+ name = " app"
3+ version = " 0.1.0"
4+ description = " "
5+ authors = [" Admin <admin@example.com>" ]
6+
7+ [tool .poetry .dependencies ]
8+ python = " ^3.7"
9+ uvicorn = " ^0.11.3"
10+ fastapi = " ^0.54.1"
11+ pyjwt = " ^1.7.1"
12+ python-multipart = " ^0.0.5"
13+ email-validator = " ^1.0.5"
14+ requests = " ^2.23.0"
15+ celery = " ^4.4.2"
16+ passlib = {extras = [" bcrypt" ], version = " ^1.7.2" }
17+ tenacity = " ^6.1.0"
18+ pydantic = " ^1.4"
19+ emails = " ^0.5.15"
20+ raven = " ^6.10.0"
21+ gunicorn = " ^20.0.4"
22+ jinja2 = " ^2.11.2"
23+ psycopg2-binary = " ^2.8.5"
24+ alembic = " ^1.4.2"
25+ sqlalchemy = " ^1.3.16"
26+ pytest = " ^5.4.1"
27+
28+ [tool .poetry .dev-dependencies ]
29+ mypy = " ^0.770"
30+ black = " ^19.10b0"
31+ isort = " ^4.3.21"
32+ autoflake = " ^1.3.1"
33+ flake8 = " ^3.7.9"
34+ pytest = " ^5.4.1"
35+ jupyter = " ^1.0.0"
36+ vulture = " ^1.4"
37+
38+ [build-system ]
39+ requires = [" poetry>=0.12" ]
40+ build-backend = " poetry.masonry.api"
Original file line number Diff line number Diff line change 11FROM tiangolo/uvicorn-gunicorn-fastapi:python3.7
22
3- RUN pip install celery~=4.3 passlib[bcrypt] tenacity requests emails "fastapi>=0.47.0" "uvicorn>=0.11.1" gunicorn pyjwt python-multipart email-validator jinja2 psycopg2-binary alembic SQLAlchemy
3+ WORKDIR /app/
4+
5+ # Install Poetry
6+ RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && \
7+ cd /usr/local/bin && \
8+ ln -s /opt/poetry/bin/poetry && \
9+ poetry config virtualenvs.create false
10+
11+ # Copy poetry.lock* in case it doesn't exist in the repo
12+ COPY ./app/pyproject.toml ./app/poetry.lock* /app/
13+ RUN poetry install --no-dev --no-root
414
515# For development, Jupyter remote kernel, Hydrogen
616# Using inside the container:
@@ -10,7 +20,6 @@ RUN bash -c "if [ $env == 'dev' ] ; then pip install jupyterlab ; fi"
1020EXPOSE 8888
1121
1222COPY ./app /app
13- WORKDIR /app/
1423
1524ENV PYTHONPATH=/app
1625
Original file line number Diff line number Diff line change 11FROM python:3.7
22
3- RUN pip install raven celery~=4.3 passlib[bcrypt] tenacity requests "fastapi>=0.47.0" emails pyjwt email-validator jinja2 psycopg2-binary alembic SQLAlchemy
3+ WORKDIR /app/
4+
5+ # Install Poetry
6+ RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && \
7+ cd /usr/local/bin && \
8+ ln -s /opt/poetry/bin/poetry && \
9+ poetry config virtualenvs.create false
10+
11+ # Copy poetry.lock* in case it doesn't exist in the repo
12+ COPY ./app/pyproject.toml ./app/poetry.lock* /app/
13+ RUN poetry install --no-dev --no-root
414
515# For development, Jupyter remote kernel, Hydrogen
616# Using inside the container:
Original file line number Diff line number Diff line change 11FROM python:3.7
22
3- RUN pip install requests pytest tenacity passlib[bcrypt] "fastapi>=0.47.0" email-validator psycopg2-binary SQLAlchemy
3+ WORKDIR /app/
4+
5+ # Install Poetry
6+ RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && \
7+ cd /usr/local/bin && \
8+ ln -s /opt/poetry/bin/poetry && \
9+ poetry config virtualenvs.create false
10+
11+ # Copy poetry.lock* in case it doesn't exist in the repo
12+ COPY ./app/pyproject.toml ./app/poetry.lock* /app/
13+ RUN poetry install --no-dev --no-root
414
515# For development, Jupyter remote kernel, Hydrogen
616# Using inside the container:
Original file line number Diff line number Diff line change @@ -17,4 +17,5 @@ services:
1717 - env-postgres.env
1818 - env-backend.env
1919 environment :
20+ - SERVER_NAME=${DOMAIN}
2021 - SERVER_HOST=https://${DOMAIN}
You can’t perform that action at this time.
0 commit comments