To create a personal finance manager web application using Python Flask, follow these steps:

1. Install the required packages

First, you need to install the necessary packages for this project. You can do this by running the following command in your terminal or command prompt:

```bash
pip install flask flask-sqlalchemy psycopg2
```

2. Set up the project structure

Create a new folder for your project and set up the following structure:

```
personal_finance_manager/
|-- app.py
|-- config.py
|-- models.py
|-- templates/
|   |-- base.html
|   |-- index.html
|   |-- add_transaction.html
|   |-- summary.html
|-- static/
|   |-- css/
|       |-- main.css
```

3. Configure the database connection

In `config.py`, configure the PostgreSQL database connection as follows:

```python
import os

basedir = os.path.abspath(os.path.dirname(__file__))

SQLALCHEMY_DATABASE_URI = 'postgresql://username:password@localhost/dbname'
SQLALCHEMY_TRACK_MODIFICATIONS = False
```

Replace `username`, `password`, and `dbname` with your own PostgreSQL credentials.

4. Create the models

In `models.py`, define the models for the income and expenses transactions:

```python
from datetime import datetime
from config import basedir
from flask_sqlalchemy import SQLAlchemy

db = SQLAlchemy()

class Transaction(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    amount = db.Column(db.Float, nullable=False)
    category = db.Column(db.String(100), nullable=False)
    description = db.Column(db.String(200))
    transaction_type = db.Column(db.String(10), nullable=False)  # "income" or "expense"
    date = db.Column(db.DateTime, default=datetime.utcnow)

    def __repr__(self):
        return f"<Transaction {self.id}>"
```

5. Set up the Flask application

In `app.py`, set up the Flask application and import the models:

```python
from flask import Flask, render_template, request, redirect, url_for
from config import SQLALCHEMY_DATABASE_URI
from models import db, Transaction

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = SQLALCHEMY_DATABASE_URI
db.init_app(app)

with app.app_context():
    db.create_all()

@app.route('/')
def index():
    transactions = Transaction.query.all()
    return render_template('index.html', transactions=transactions)

# Add more routes for adding transactions, categorizing them, and viewing summary reports

if __name__ == '__main__':
    app.run(debug=True)
```

6. Create templates

Create the base template in `templates/base.html`:

```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Personal Finance Manager</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
</head>
<body>
    <div class="container">
        {% block content %}
        {% endblock %}
    </div>
</body>
</html>
```

Create the main page template in `templates/index.html`:

```html
{% extends 'base.html' %}

{% block content %}
<h1>Transactions</h1>
<a href="{{ url_for('add_transaction') }}">Add Transaction</a>
<table>
    <thead>
        <tr>
            <th>Date</th>
            <th>Type</th>
            <th>Category</th>
            <th>Description</th>
            <th>Amount</th>
        </tr>
    </thead>
    <tbody>
        {% for transaction in transactions %}
        <tr>
            <td>{{ transaction.date.strftime('%Y-%m-%d') }}</td>
            <td>{{ transaction.transaction_type }}</td>
            <td>{{ transaction.category }}</td>
            <td>{{ transaction.description }}</td>
            <td>{{ transaction.amount }}</td>
        </tr>
        {% endfor %}
    </tbody>
</table>
{% endblock %}
```

7. Add routes for adding transactions, categorizing them, and viewing summary reports

Add the following routes to `app.py`:

```python
@app.route('/add_transaction', methods=['GET', 'POST'])
def add_transaction():
    if request.method == 'POST':
        amount = float(request.form['amount'])
        category = request.form['category']
        description = request.form['description']
        transaction_type = request.form['transaction_type']

        new_transaction = Transaction(amount=amount, category=category,
                                      description=description, transaction_type=transaction_type)
        db.session.add(new_transaction)
        db.session.commit()

        return redirect(url_for('index'))

    return render_template('add_transaction.html')

@app.route('/summary')
def summary():
    income_transactions = Transaction.query.filter_by(transaction_type='income').all()
    expense_transactions = Transaction.query.filter_by(transaction_type='expense').all()

    total_income = sum([t.amount for t in income_transactions])
    total_expense = sum([t.amount for t in expense_transactions])

    return render_template('summary.html', total_income=total_income, total_expense=total_expense)
```

8. Create templates for adding transactions and viewing summary reports

Create `templates/add_transaction.html`:

```html
{% extends 'base.html' %}

{% block content %}
<h1>Add Transaction</h1>
<form method="post" action="{{ url_for('add_transaction') }}">
    <label for="transaction_type">Type:</label>
    <select name="transaction_type">
        <option value="income">Income</option>
        <option value="expense">Expense</option>
    </select><br>
    <label for="category">Category:</label>
    <input type="text" name="category" required><br>
    <label for="description">Description:</label>
    <input type="text" name="description"><br>
    <label for="amount">Amount:</label>
    <input type="number" step="0.01" name="amount" required><br>
    <button type="submit">Add Transaction</button>
</form>
{% endblock %}
```

Create `templates/summary.html`:

```html
{% extends 'base.html' %}

{% block content %}
<h1>Summary</h1>
<p>Total Income: {{ total_income }}</p>
<p>Total Expense: {{ total_expense }}</p>
<p>Net Balance: {{ total_income - total_expense }}</p>
{% endblock %}
```

9. Add CSS styles

In `static/css/main.css`, add some basic styling to your application:

```css
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid #ccc;
}
```

10. Run the application

Start the Flask development server by running the following command in your terminal or command prompt:

```bash
python app.py
```

Now you can access the personal finance manager web application at http://127.0.0.1:5000/.
Python Flask를 사용하여 개인 재무 관리자 웹 애플리케이션을 만들려면 다음 단계를 따르세요

1. 필요한 패키지 설치

먼저, 이 프로젝트에 필요한 패키지를 설치해야 합니다. 터미널 또는 명령 프롬프트에서 다음 명령을 실행하여 설치할 수 있습니다:

```bash
pip install flask flask-sqlalchemy psycopg2
```

2. 프로젝트 구조 설정

프로젝트를 위한 새 폴더를 생성하고 다음 구조를 설정합니다:

```
personal_finance_manager/
|-- app.py
|-- config.py
|-- models.py
|-- templates/
|   |-- base.html
|   |-- index.html
|   |-- add_transaction.html
|   |-- summary.html
|-- static/
|   |-- css/
|       |-- main.css
```

3. 데이터베이스 연결 구성

`config.py`에서 다음과 같이 PostgreSQL 데이터베이스 연결을 구성합니다:

```python
import os

basedir = os.path.abspath(os.path.dirname(__file__))

SQLALCHEMY_DATABASE_URI = 'postgresql://username:password@localhost/dbname'
SQLALCHEMY_TRACK_MODIFICATIONS = False
```

`username`, `password` 및 `dbname`을 자신의 PostgreSQL 자격 증명으로 바꿉니다.

4. 모델 생성

`models.py`에서 수입 및 지출 트랜잭션에 대한 모델을 정의합니다:

```python
from datetime import datetime
from config import basedir
from flask_sqlalchemy import SQLAlchemy

db = SQLAlchemy()

class Transaction(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    amount = db.Column(db.Float, nullable=False)
    category = db.Column(db.String(100), nullable=False)
    description = db.Column(db.String(200))
    transaction_type = db.Column(db.String(10), nullable=False)  # "income" or "expense"
    date = db.Column(db.DateTime, default=datetime.utcnow)

    def __repr__(self):
        return f"<Transaction {self.id}>"
```

5. 플라스크 애플리케이션 설정

`app.py`에서 플라스크 애플리케이션을 설정하고 모델을 가져옵니다:

```python
from flask import Flask, render_template, request, redirect, url_for
from config import SQLALCHEMY_DATABASE_URI
from models import db, Transaction

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = SQLALCHEMY_DATABASE_URI
db.init_app(app)

with app.app_context():
    db.create_all()

@app.route('/')
def index():
    transactions = Transaction.query.all()
    return render_template('index.html', transactions=transactions)

# Add more routes for adding transactions, categorizing them, and viewing summary reports

if __name__ == '__main__':
    app.run(debug=True)
```

6. 템플릿 생성

`templates/base.html`에서 기본 템플릿을 생성합니다:

```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Personal Finance Manager</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
</head>
<body>
    <div class="container">
        {% block content %}
        {% endblock %}
    </div>
</body>
</html>
```

`templates/index.html`에서 메인 페이지 템플릿을 만듭니다:

```html
{% extends 'base.html' %}

{% block content %}
<h1>Transactions</h1>
<a href="{{ url_for('add_transaction') }}">Add Transaction</a>
<table>
    <thead>
        <tr>
            <th>Date</th>
            <th>Type</th>
            <th>Category</th>
            <th>Description</th>
            <th>Amount</th>
        </tr>
    </thead>
    <tbody>
        {% for transaction in transactions %}
        <tr>
            <td>{{ transaction.date.strftime('%Y-%m-%d') }}</td>
            <td>{{ transaction.transaction_type }}</td>
            <td>{{ transaction.category }}</td>
            <td>{{ transaction.description }}</td>
            <td>{{ transaction.amount }}</td>
        </tr>
        {% endfor %}
    </tbody>
</table>
{% endblock %}
```

7. 트랜잭션 추가, 분류, 요약 보고서 보기를 위한 경로 추가

`app.py`에 다음 경로를 추가합니다:

```python
@app.route('/add_transaction', methods=['GET', 'POST'])
def add_transaction():
    if request.method == 'POST':
        amount = float(request.form['amount'])
        category = request.form['category']
        description = request.form['description']
        transaction_type = request.form['transaction_type']

        new_transaction = Transaction(amount=amount, category=category,
                                      description=description, transaction_type=transaction_type)
        db.session.add(new_transaction)
        db.session.commit()

        return redirect(url_for('index'))

    return render_template('add_transaction.html')

@app.route('/summary')
def summary():
    income_transactions = Transaction.query.filter_by(transaction_type='income').all()
    expense_transactions = Transaction.query.filter_by(transaction_type='expense').all()

    total_income = sum([t.amount for t in income_transactions])
    total_expense = sum([t.amount for t in expense_transactions])

    return render_template('summary.html', total_income=total_income, total_expense=total_expense)
```

8. 트랜잭션 추가 및 요약 보고서 보기용 템플릿 만들기

`templates/add_transaction.html`을 생성합니다:

```html
{% extends 'base.html' %}

{% block content %}
<h1>Add Transaction</h1>
<form method="post" action="{{ url_for('add_transaction') }}">
    <label for="transaction_type">Type:</label>
    <select name="transaction_type">
        <option value="income">Income</option>
        <option value="expense">Expense</option>
    </select><br>
    <label for="category">Category:</label>
    <input type="text" name="category" required><br>
    <label for="description">Description:</label>
    <input type="text" name="description"><br>
    <label for="amount">Amount:</label>
    <input type="number" step="0.01" name="amount" required><br>
    <button type="submit">Add Transaction</button>
</form>
{% endblock %}
```

`templates/summary.html`을 생성합니다:

```html
{% extends 'base.html' %}

{% block content %}
<h1>Summary</h1>
<p>Total Income: {{ total_income }}</p>
<p>Total Expense: {{ total_expense }}</p>
<p>Net Balance: {{ total_income - total_expense }}</p>
{% endblock %}
```

9. CSS 스타일 추가

`static/css/main.css`에서 애플리케이션에 몇 가지 기본 스타일을 추가합니다:

```css
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid #ccc;
}
```

10. 애플리케이션 실행

터미널 또는 명령 프롬프트에서 다음 명령을 실행하여 플라스크 개발 서버를 시작합니다:

```bash
python app.py
```

이제 개인 재무 관리자 웹 애플리케이션(http://127.0.0.1:5000/)에 액세스할 수 있습니다.