From b75e72eca063043339818f6375f5d5ba1c994167 Mon Sep 17 00:00:00 2001 From: Drew Bednar Date: Tue, 4 Feb 2020 21:27:07 -0500 Subject: [PATCH] Inital commit --- .gitignore | 2 ++ LICENSE | 2 +- README.md | 6 +++--- services/api/Dockerfile | 0 services/api/app/__init__.py | 0 services/api/app/main.py | 0 services/api/dev_requirements.in | 5 +++++ services/api/dev_requirements.txt | 35 +++++++++++++++++++++++++++++++ services/api/requirements.in | 5 +++++ services/api/requirements.txt | 19 +++++++++++++++++ 10 files changed, 70 insertions(+), 4 deletions(-) create mode 100644 services/api/Dockerfile create mode 100644 services/api/app/__init__.py create mode 100644 services/api/app/main.py create mode 100644 services/api/dev_requirements.in create mode 100644 services/api/dev_requirements.txt create mode 100644 services/api/requirements.in create mode 100644 services/api/requirements.txt diff --git a/.gitignore b/.gitignore index 7f7cccc..c959f2f 100644 --- a/.gitignore +++ b/.gitignore @@ -58,3 +58,5 @@ docs/_build/ # PyBuilder target/ +# Pycharm +.idea/ \ No newline at end of file diff --git a/LICENSE b/LICENSE index 472ac23..29097c9 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ MIT License -Copyright (c) +Copyright (c) 2020 Drew Bednar Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/README.md b/README.md index d1002bc..e4f6f49 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# fast_api +# Learn FastAPI + +Simple CRUD app created with Fast-API following the Test Driven article: -Simple CRUD app created with Fast-API - https://testdriven.io/blog/fastapi-crud/ \ No newline at end of file diff --git a/services/api/Dockerfile b/services/api/Dockerfile new file mode 100644 index 0000000..e69de29 diff --git a/services/api/app/__init__.py b/services/api/app/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/services/api/app/main.py b/services/api/app/main.py new file mode 100644 index 0000000..e69de29 diff --git a/services/api/dev_requirements.in b/services/api/dev_requirements.in new file mode 100644 index 0000000..51e72bb --- /dev/null +++ b/services/api/dev_requirements.in @@ -0,0 +1,5 @@ +black +flake8 +pip-tools +pytest +requests \ No newline at end of file diff --git a/services/api/dev_requirements.txt b/services/api/dev_requirements.txt new file mode 100644 index 0000000..4f935e2 --- /dev/null +++ b/services/api/dev_requirements.txt @@ -0,0 +1,35 @@ +# +# This file is autogenerated by pip-compile +# To update, run: +# +# pip-compile dev_requirements.in +# +appdirs==1.4.3 # via black +attrs==19.3.0 # via black, pytest +black==19.10b0 +certifi==2019.11.28 # via requests +chardet==3.0.4 # via requests +click==7.0 # via black, pip-tools +entrypoints==0.3 # via flake8 +flake8==3.7.9 +idna==2.8 # via requests +importlib-metadata==1.5.0 # via pluggy, pytest +mccabe==0.6.1 # via flake8 +more-itertools==8.2.0 # via pytest +packaging==20.1 # via pytest +pathspec==0.7.0 # via black +pip-tools==4.4.1 +pluggy==0.13.1 # via pytest +py==1.8.1 # via pytest +pycodestyle==2.5.0 # via flake8 +pyflakes==2.1.1 # via flake8 +pyparsing==2.4.6 # via packaging +pytest==5.3.5 +regex==2020.1.8 # via black +requests==2.22.0 +six==1.14.0 # via packaging, pip-tools +toml==0.10.0 # via black +typed-ast==1.4.1 # via black +urllib3==1.25.8 # via requests +wcwidth==0.1.8 # via pytest +zipp==2.1.0 # via importlib-metadata diff --git a/services/api/requirements.in b/services/api/requirements.in new file mode 100644 index 0000000..d0c68b0 --- /dev/null +++ b/services/api/requirements.in @@ -0,0 +1,5 @@ +asyncpg +databases[postgresql] +fastapi +SQLAlchemy +uvicorn \ No newline at end of file diff --git a/services/api/requirements.txt b/services/api/requirements.txt new file mode 100644 index 0000000..8cc9320 --- /dev/null +++ b/services/api/requirements.txt @@ -0,0 +1,19 @@ +# +# This file is autogenerated by pip-compile +# To update, run: +# +# pip-compile requirements.in +# +asyncpg==0.20.1 +click==7.0 # via uvicorn +databases[postgresql]==0.2.6 +fastapi==0.48.0 +h11==0.9.0 # via uvicorn +httptools==0.0.13 # via uvicorn +psycopg2-binary==2.8.4 # via databases +pydantic==1.4 # via fastapi +sqlalchemy==1.3.13 +starlette==0.12.9 # via fastapi +uvicorn==0.11.2 +uvloop==0.14.0 # via uvicorn +websockets==8.1 # via uvicorn