mirror of
https://github.com/Michatec/MiniFaceBook.git
synced 2026-05-30 18:02:40 +02:00
5febf7e64d
- Add CSRF token validation to the shop purchase process to prevent cross-site request forgery. - Implement a unique constraint on `UserShopItem` to prevent duplicate purchases of the same item. - Refactor the shop template with a modern, responsive grid layout and improved visual feedback for owned items. - Enhance CSS with better dark/light mode support, including improved navbar styling and scrollbar customization. - Add `.env_example` and update documentation for environment variable setup. - Integrate `python-dotenv` for environment variable management. - Improve logging configuration for the application. - Update `.gitignore` to include `venv/` and `.env`. Co-authored-by: Copilot <copilot@github.com>
66 lines
1.5 KiB
Markdown
66 lines
1.5 KiB
Markdown
# MiniFacebook
|
|
|
|
MiniFacebook is a minimalist social network built with [Flask](https://flask.palletsprojects.com/), [SQLAlchemy](https://www.sqlalchemy.org/), and [Bootstrap](https://getbootstrap.com/). It allows you to share posts, images, videos, and messages with friends—ad-free and privacy-focused.
|
|
|
|
## Features
|
|
|
|
- Share posts, images, videos, and documents
|
|
- Friend requests and friends list
|
|
- Activity notifications
|
|
- Realtime notifications
|
|
- Shop for premium features (e.g., gold frames, extra uploads)
|
|
- Admin panel with user management
|
|
- Multilingual (German/English)
|
|
- Dark and light mode
|
|
- Gravatar Addon
|
|
- Discord login and linking
|
|
- Support ticket system
|
|
- Password reset via email
|
|
- Responsive design for desktop and mobile
|
|
|
|
## Installation
|
|
|
|
1. **Clone the repository**
|
|
|
|
```sh
|
|
git clone https://github.com/Michatec/MiniFaceBook.git
|
|
cd MiniFaceBook
|
|
```
|
|
|
|
2. **Install dependencies**
|
|
|
|
```sh
|
|
pip install -r requirments.txt
|
|
```
|
|
|
|
3. **Setup the .env file**
|
|
|
|
```sh
|
|
mv .env_example .env
|
|
```
|
|
|
|
And you can change this file, to your preferred Settings.
|
|
⚠️ You need to set up a PORT
|
|
|
|
4. **Start**
|
|
|
|
```sh
|
|
python main.py
|
|
```
|
|
5. **Optional:**
|
|
|
|
Go to routes/example_oauth.py
|
|
|
|
Paste Your Client ID and Client Secret from the Discord Dev portal.
|
|
|
|
And rename it to oauth.py
|
|
|
|
|
|
## Help to translate
|
|
|
|
<https://poeditor.com/join/project/emzEV5JvvI>
|
|
|
|
## License
|
|
|
|
This project is licensed under the GNU General Public License v3.0.
|