Compare commits
3 Commits
93db6ae0f4
...
a7ed4d06fb
Author | SHA1 | Date | |
---|---|---|---|
a7ed4d06fb | |||
e30a0a6f9b | |||
43f53fe79b |
@ -1 +0,0 @@
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
技術スタックは以下の通り
|
||||
|
||||
- Go
|
||||
- Gin
|
||||
- Python
|
||||
- Flask
|
||||
- JavaScript
|
||||
- Bootstrap or Tailwind テンプレート(未定)
|
||||
- MySQL
|
||||
|
25
app/__init__.py
Normal file
25
app/__init__.py
Normal file
@ -0,0 +1,25 @@
|
||||
from flask import Flask
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
from flask_login import LoginManager
|
||||
import os
|
||||
|
||||
# db = SQLAlchemy()
|
||||
login_manager = LoginManager()
|
||||
#login_manager.login_view = 'auth.login'
|
||||
login_manager.login_message_category = 'info'
|
||||
|
||||
# TODO:DB設定などのコードを書く
|
||||
def create_app():
|
||||
app = Flask(__name__)
|
||||
# TODO:シークレットキーは設定ファイルで管理
|
||||
app.config['SECRET_KEY'] = 'secret'
|
||||
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:password@localhost/workout'
|
||||
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
||||
|
||||
#db.init_app(app)
|
||||
#login_manager.init_app(app)
|
||||
|
||||
#with app.app_context():
|
||||
#db.create_all()
|
||||
|
||||
return app
|
0
app/models/__init__.py
Normal file
0
app/models/__init__.py
Normal file
0
app/models/workout.py
Normal file
0
app/models/workout.py
Normal file
0
app/repositories/__init__.py
Normal file
0
app/repositories/__init__.py
Normal file
0
app/repositories/workout_repository.py
Normal file
0
app/repositories/workout_repository.py
Normal file
0
app/routes/__init__.py
Normal file
0
app/routes/__init__.py
Normal file
0
app/routes/workout_routes.py
Normal file
0
app/routes/workout_routes.py
Normal file
0
app/services/__init__.py
Normal file
0
app/services/__init__.py
Normal file
0
app/services/workout_service.py
Normal file
0
app/services/workout_service.py
Normal file
0
app/static/css/bootstrap.min.css
vendored
Normal file
0
app/static/css/bootstrap.min.css
vendored
Normal file
0
app/static/js/bootstrap.bundle.min.js
vendored
Normal file
0
app/static/js/bootstrap.bundle.min.js
vendored
Normal file
0
app/templates/dashboard.html
Normal file
0
app/templates/dashboard.html
Normal file
0
app/templates/layouts/base.html
Normal file
0
app/templates/layouts/base.html
Normal file
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
5
requirements.txt
Normal file
5
requirements.txt
Normal file
@ -0,0 +1,5 @@
|
||||
Flask
|
||||
Flask-SQLAlchemy
|
||||
PyMySQL
|
||||
python-dotenv
|
||||
gunicorn
|
Loading…
x
Reference in New Issue
Block a user