Compare commits

...

3 Commits

Author SHA1 Message Date
93db6ae0f4 __init__.pyを大まかに作成 2025-06-13 22:09:21 +09:00
c8dee4c978 run.py __init__.pyの形をとりあえず作成 2025-06-10 13:08:08 +09:00
0ab78dcdff 実装をPythonに変更 2025-06-09 13:21:22 +09:00
42 changed files with 47 additions and 26 deletions

9
.env Normal file
View File

@ -0,0 +1,9 @@
# Flask Configuration
FLASK_CONFIG=development
SECRET_KEY=your_secret_key_here
# Database Configuration
DB_USER=root
DB_PASSWORD=your_db_password
DB_HOST=db
DB_NAME=workout_db

View File

@ -1 +0,0 @@


View File

@ -3,8 +3,8 @@
技術スタックは以下の通り
- Go
- Gin
- Python
- Flask
- JavaScript
- Bootstrap or Tailwind テンプレート(未定)
- MySQL

25
app/__init__.py Normal file
View 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
View File

0
app/models/workout.py Normal file
View File

View File

View File

0
app/routes/__init__.py Normal file
View File

View File

0
app/services/__init__.py Normal file
View File

View File

0
app/static/css/bootstrap.min.css vendored Normal file
View File

0
app/static/js/bootstrap.bundle.min.js vendored Normal file
View File

View File

View File

View File

@ -1 +0,0 @@


0
config.py Normal file
View File

View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


1
go.mod
View File

@ -1 +0,0 @@


1
go.sum
View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


View File

@ -1 +0,0 @@


5
requirements.txt Normal file
View File

@ -0,0 +1,5 @@
Flask
Flask-SQLAlchemy
PyMySQL
python-dotenv
gunicorn

6
run.py Normal file
View File

@ -0,0 +1,6 @@
from app import create_app
app = create_app()
if __name__ == '__main__':
app.run(debug=True)