| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Welcome to the Flask MVC Structure with Discord Integration! This project is primarily a Flask-based web application following the MVC (Model-View-Controller) structure, with the added feature of integrating a Discord bot using Disnake. This setup allows you to build a web app while also having a Discord bot running in parallel, enabling additional functionality. The structure is flexible, allowing you to expand it for more parallel tasks, or easily adjust it to run a single task as needed.
This project has been archived and is no longer maintained. It represents an older version of the application.
✅ New Version Available
A new and improved version of this project is available here: 👉 Zeython
We recommend using the new version for the latest features, updates, and improvements.
.
├── app
│ ├── Actions # Utility functions (pagination, embeds, webhook handling, etc.)
│ ├── Commands # Discord command handling
│ │ ├── Context # Traditional Discord commands
│ │ └── Slash # Slash commands for Discord
│ ├── Controllers # Controller logic for Flask and Discord
│ │ ├── Flask # Controllers specific to Flask web app
│ │ └── Discord # Controllers for Discord bot
│ ├── Models # Data models for the application
│ └── Views # Dynamic Flask views/templates structures
├── config
│ └── boot.py # Main entry point to boot up the program (Flask + Discord)
├── database
│ └── db.py # Database interactions (abstraction layer)
├── resources # Static and template files for Flask
│ ├── css # CSS files
│ ├── js # JavaScript files
│ └── views # HTML templates
├── routes
│ ├── api.py # Routes for API endpoints
│ └── web.py # Routes for web pages
├── storage # User file storage (uploads, etc.)
├── vendor # Placeholder for third-party integrations (collaborations welcome)
├── requirements.txt # Python dependencies
├── Dockerfile # Docker containerization file
└── .env # Environment configuration variablesContributions are welcome! If you'd like to collaborate, feel free to fork this repository and submit a pull request. Potential areas of contribution include:
Check out the issues section for current needs, or suggest your own enhancements!
Clone the Repository:
git clone https://github.com/MahediZaber51/MVC-Python.git
cd MVC-PythonInstall Dependencies:
pip install -r requirements.txtSet up Environment Variables: Create a .env file in the root directory with the required environment variables for Flask and Discord (check the .env-example file).
Run the Application:
python config/boot.pyRun in Docker:
docker build -t flask-discord-app .
docker run -d -p 5000:5000 flask-discord-appThis project is licensed under the GNU General Public License v3.0.
| Back | FazBrowse Home | New Git URL |