Thank you for considering contributing to the Flask MVC Structure with Discord Integration project! We welcome contributions to improve the project, whether it's fixing bugs, adding new features, or enhancing documentation. Follow this guide to get started with contributing.
If you find any bugs, please open an issue in the repository and include:
- A clear description of the bug.
- Steps to reproduce the issue.
- Any relevant error messages or screenshots.
If you have ideas for features or improvements, please open an issue with:
- A detailed description of the feature or improvement.
- How it benefits the project.
- If possible, include any references or examples.
- Fork the repository by clicking the "Fork" button on GitHub.
- Clone your fork locally:
git clone https://github.com/MahediZaber51/MVC-Python.git cd your-fork
Always create a new branch for your changes to avoid polluting the main
branch:
git checkout -b feature-or-bugfix-description
- Ensure that your code follows the project's structure.
- If you're adding a new feature:
- Follow the MVC architecture.
- Update or create relevant views, controllers, models, or commands.
- If you're fixing a bug, add a detailed explanation in the pull request.
- If you're adding a new feature or fixing a bug, consider writing tests to ensure the changes work as expected.
- Place your tests in an appropriate testing file (to be created if needed).
- Write clear and descriptive commit messages.
- Follow the format:
Fix: Corrected pagination bug in Actions. Feature: Added new Discord slash command for user stats.
git push origin feature-or-bugfix-description
- Go to your fork on GitHub and click the "Compare & Pull Request" button.
- Write a description of your changes in the PR.
- Reference any related issues in the PR.
- Request a review from one of the maintainers.
- Follow PEP8 for Python code.
- Use clear and descriptive variable and function names.
- Keep functions and methods small and focused.
- Comment your code where necessary, especially for complex logic.
- Ensure that any changes to the database layer are handled cleanly.
-
Clone the Repository:
git clone https://github.com/MahediZaber51/MVC-Python.git cd your-repo
-
Install Dependencies:
pip install -r requirements.txt
-
Set up Environment Variables: Create a
.env
file in the root directory with necessary environment variables. -
Run the Application:
python config/boot.py
-
Run Tests (if available):
pytest
-
Docker (Optional): If you'd like to work in a Docker environment:
docker build -t flask-discord-app . docker run -d -p 5000:5000 flask-discord-app
By submitting code to this repository, you agree that your contributions will be licensed under the same license as the project: GNU General Public License v3.0.
If you have any questions or need assistance, feel free to reach out by:
- Opening an issue.
- Mailing me at: zaber@zealtyro.com
Thank you for helping to improve this project! 😊