GithubHelp home page GithubHelp logo

python-webapp's Introduction

インストール手順

1. flask インストール

pip install flask flask-socketio
or
python -m pip install flask flask-socketio

2. simple-websocket

python -m pip install -U simple-websocket

3. ファイル作成

mkdir webapp
cd webapp
mkdir templates
new-item templates\index.html
new-item app.py

起動手順

python .\app.py

ファイル構成

python_web
│
├─ app.py
│
└─ templates
   │
   └─ index.html

設計書

DB

erDiagram
USERS ||--o{  MESSAGES:allows
  USERS {
    int id PK
    string name
    string Email UK
    string img
    timestamp created_at
    timestamp deleted_at
  }

  MESSAGES{
    message_id id PK
    string message
    timestamp created_at
    boolian delete_flag
  }

Loading
your_project/
├─ application/
│   ├─ __init__.py: アプリケーションの初期化と設定を行う。
│   ├─ models/
│   │   ├─ __init__.py: モデルディレクトリの初期化ファイル。
│   │   ├─ chat.py: チャットに関連するデータベースのモデル定義と操作を記述。
│   │   └─ login.py: ログインに関連するデータベースのモデル定義と操作を記述。
│   └─ templates/
│       ├─ index.html: アプリケーションのトップページのテンプレート。
│       └─ chat.html: チャット一覧ページのテンプレート。
├─ tests/
│   ├─ __init__.py: テストディレクトリの初期化ファイル。
│   └─ test_chat.py: チャット機能のテストコードを記述。
├─ static/
│   ├─ css/
│   │   └─ styles.css: 共通のスタイルシート。
│   ├─ js/
│   │   └─ chat.js: チャットページで使用するJavaScriptコード。
│   └─ images/
│       └─ logo.png: アプリケーションのロゴ画像。
├─ migrations/
│   └─ 001_initial_migration.py: 初期のデータベースマイグレーションファイル。
├─ config.py: アプリケーションの設定を管理する。データベース接続情報などを含む。
├─ wsgi.py: アプリケーションのエントリーポイント。Flaskアプリケーションの起動と実行を行う。
├─ README.md: プロジェクトの説明、セットアップ手順、使用方法などを記述。
└─ .gitignore: Gitバージョン管理から除外するファイルや/models

設計書

# 設計書

## 1. 要件定義書
- 機能要件
- 非機能要件

---

## 2. 概念設計書
- システムの全体像
- 主要なコンポーネント
- コンポーネント間の相互関係

---

## 3. 詳細設計書
- データベースのスキーマ
- クラスとメソッドの詳細
- APIエンドポイント
- エラーハンドリング

---

## 4. データベース設計書
- テーブル定義
- リレーションシップ
- インデックス
- トリガー
- ビュー

---

## 5. UI/UX設計書
- ワイヤーフレーム
- ユーザフロー図
- スクリーンショット
- インタラクションの詳細

---

## 6. テスト設計書
- 単体テスト
- 統合テスト
- システムテスト
- 受け入れテスト

---

## 7. デプロイメント設計書
- インフラストラクチャの設定
- デプロイメントパイプラインの設定
- ロールバック戦略

環境構築コマンド

New-item "1_要件定義書.md"
New-item "2_概念設計書.md"
New-item "3_詳細設計書.md"
New-item "4_データベース設計書.md"
New-item "5_UI-UX設計書.md"
New-item "6_テスト設計書.md"
New-item "7_デプロイメント設計書.md"

python-webapp's People

Contributors

sakakitani avatar

Watchers

Sakaki avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.