Skip to content

Commit b3e962a

Browse files
committed
feat: Blog Create API Endpoint [Issue #1]
1 parent 36a829f commit b3e962a

File tree

22 files changed

+360
-292
lines changed

22 files changed

+360
-292
lines changed

.env.example

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
PYTHON_ENV=dev
21
DB_TYPE=postgresql
3-
DB_NAME=""
4-
DB_USER=""
5-
DB_PASSWORD=""
2+
DB_NAME=blogdb
3+
DB_USER=blogusr
4+
DB_PASSWORD=blogpwd
65
DB_HOST=localhost
76
DB_PORT=5432
7+
DB_URL=postgresql://blogusr:blogpwd@localhost:5432/blogdb

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/workflows/cd.dev.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/cd.prod.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/cd.staging.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ repos:
2525
rev: v1.10.1
2626
hooks:
2727
- id: mypy
28+
additional_dependencies: [alembic==1.13.2]

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ clean: ## Clean up the project of unneeded files
1717

1818
run: ## Run the development server
1919
@uvicorn main:app --reload
20+
21+
migrate: ## Run the database migration
22+
@alembic revision --autogenerate
23+
@alembic upgrade head

0 commit comments

Comments
 (0)