Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Rm spurious newlines, fix markdown #138

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions templates/abbreviations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,34 @@
{% set db_port_label = "MongoDB Port" %}
{% set db = "MongoDB" %}
{% endif %}

{% if 'postgres' in cookiecutter.db_resource %}
{% set db_port = "5432" %}
{% set db_port_label = "PostgreSQL Port" %}
{% set db = "PostgreSQL" %}
{% endif %}

{% if cookiecutter.project_backend == "fastapi" %}
{% set web_framework = "FastAPI" %}
{% if 'postgres' in cookiecutter.db_resource %}
{% set orm = "SQLModel" %}
{% endif %}
{% endif %}

{% if cookiecutter.project_backend == "flask" %}
{% set web_framework = "Flask" %}
{% if 'postgres' in cookiecutter.db_resource %}
{% set orm = "SQLAlchemy" %}
{% endif %}
{% endif %}

{% if cookiecutter.project_backend == "django" %}
{% set web_framework = "Django" %}
{% if 'postgres' in cookiecutter.db_resource %}
{% set orm = "DjangoORM" %}
{% endif %}
{% endif %}

{% if cookiecutter.project_host == "aca" %}
{% set azure_host = "Azure Container Apps" %}
{% endif %}

{% if cookiecutter.project_host == "appservice" %}
{% set azure_host = "Azure App Service" %}
{% endif %}

{% block cc %}
{% endblock %}
11 changes: 2 additions & 9 deletions {{cookiecutter.__src_folder_name}}/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,19 @@ If you're not using one of those options for opening the project, then you'll ne

1. Apply database migrations and seed initial data:

{% if cookiecutter.project_backend == "django" %}
```sh
{% if cookiecutter.project_backend == "django" %}
python src/manage.py migrate
python src/manage.py loaddata src/seed_data.json

```
{% endif %}
{% if cookiecutter.project_backend == "flask" %}
```sh
python3 -m flask --app src.flaskapp db upgrade --directory src/flaskapp/migrations
python3 -m flask --app src.flaskapp seed --filename src/seed_data.json
```

{% endif %}
{% if cookiecutter.project_backend == "fastapi" %}
```sh
python3 src/fastapi_app/seed_data.py

```
{% endif %}
```

## Running locally

Expand Down
Loading