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

Commit

Permalink
Merge pull request #138 from kjaymiller/newline-fix
Browse files Browse the repository at this point in the history
Rm spurious newlines, fix markdown
  • Loading branch information
kjaymiller authored Sep 8, 2023
2 parents 364f618 + 535ea1a commit 0a63cbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
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

0 comments on commit 0a63cbc

Please sign in to comment.