Skip to content

Commit

Permalink
[CREATE] <*> 구조 init
Browse files Browse the repository at this point in the history
  • Loading branch information
mallycrip committed Sep 8, 2020
1 parent e064802 commit f21c277
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
__pycache__/
*.py[cod]
*$py.class
.idea/

# C extensions
*.so
Expand Down
Empty file added __init__.py
Empty file.
Empty file added application/__init__.py
Empty file.
Empty file added application/config/__init__.py
Empty file.
7 changes: 7 additions & 0 deletions application/config/app_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class DevLevelConfig:
worker_node = 10

host = "0.0.0.0"
port = 50051

_address = str(host + ":" + str(port))
Empty file.
Empty file added application/service/__init__.py
Empty file.
Empty file added domain/__init__.py
Empty file.
Empty file added domain/entity/__init__.py
Empty file.
Empty file added domain/values/__init__.py
Empty file.
Empty file added infrastructure/__init__.py
Empty file.
16 changes: 16 additions & 0 deletions presentation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import grpc


def register_hooks():
pass


def register_presentations(app):
pass


def create_app():
app = grpc

register_presentations(app)
return app
Empty file added presentation/config/__init__.py
Empty file.
6 changes: 6 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from presentation import create_app


if __name__ == '__main__':
app = create_app()
app.run()

0 comments on commit f21c277

Please sign in to comment.