https://github.com/hideya/test-flask-simple-app
https://github.com/hideya/test-flask-simple-app
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/hideya/test-flask-simple-app
- Owner: hideya
- License: mit
- Created: 2024-12-13T11:00:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-07T19:23:45.000Z (over 1 year ago)
- Last Synced: 2025-02-05T04:53:42.568Z (over 1 year ago)
- Language: Python
- Size: 922 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flask Memo Application
A web app that allows users to create and manage personal memos. Built with Flask and SQLAlchemy.
Generated by Replit Agent almost automatically!
## Features
- User Authentication (Register/Login)
- Personal Memo Management
- Automatic Save
- Secure Password Handling
- Database Integration
## Technologies
- Flask
- SQLAlchemy
- Flask-Login
- WTForms
- PostgreSQL
## Setup
1. Clone the repository
```bash
git clone
cd
```
2. Create a virtual environment
```bash
uv venv
```
3. Activate the virtual environment
```bash
source .venv/bin/activate
```
4. Install dependencies:
```bash
uv pip install -r requirements.txt
```
5. Configure environment variables
Copy `.env.template` to `.env` and update the values.
The server will use the values in `.env` to configure the database and other settings.
At first run, the server will create necessary database tables automatically.
The `.env` file is ignored by git for security purposes.
6. Run development server:
```bash
python app/main.py
```
Server runs on port 5001 by default.
## Usage
1. Register/Login to access your personal memo space
2. Write or edit your memo content
3. Changes are automatically saved
4. Logout to secure your session
## Security Features
- Password hashing
- Session management
- CSRF protection
- Secure database operations
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.