|
| 1 | +# Learn Zeython |
| 2 | + |
| 3 | +Welcome to Zeython! This guide walks you from zero to productive with the modular MVC framework. |
| 4 | + |
| 5 | +Zeython is created by Md Mahedi Zaman Zaber and is the improved, advanced version of MVC-Python. |
| 6 | + |
| 7 | +- Repository: https://github.com/zaber-dev/Zeython |
| 8 | +- License: GPL-3.0-or-later |
| 9 | + |
| 10 | +## Who is this for? |
| 11 | + |
| 12 | +- Python developers who want a clean MVC foundation with services (web, Discord, and more) |
| 13 | +- Teams that value configuration-driven, modular architecture |
| 14 | +- Learners exploring service-oriented application design with Flask |
| 15 | + |
| 16 | +## Quick Start |
| 17 | + |
| 18 | +1) Clone and install |
| 19 | + |
| 20 | +```bash |
| 21 | +git clone https://github.com/zaber-dev/Zeython.git |
| 22 | +cd Zeython |
| 23 | +pip install -r requirements.txt |
| 24 | +``` |
| 25 | + |
| 26 | +2) Configure environment |
| 27 | + |
| 28 | +Create a `.env` in the project root (see `.env_example` if present): |
| 29 | + |
| 30 | +```env |
| 31 | +FLASK_HOST=127.0.0.1 |
| 32 | +FLASK_PORT=5000 |
| 33 | +DATABASE_URL=sqlite:///database.db |
| 34 | +``` |
| 35 | + |
| 36 | +3) Run |
| 37 | + |
| 38 | +```bash |
| 39 | +python config/application.py |
| 40 | +``` |
| 41 | + |
| 42 | +Open http://127.0.0.1:5000/ |
| 43 | + |
| 44 | +## What you’ll build/learn |
| 45 | + |
| 46 | +- MVC structure with clear separation of concerns |
| 47 | +- Service management: register, enable, run in parallel |
| 48 | +- Database layer and models with enhanced features |
| 49 | +- Web routes and APIs, plus optional Discord integration |
| 50 | + |
| 51 | +## Concepts map |
| 52 | + |
| 53 | +- Architecture overview: docs/architecture.md |
| 54 | +- Getting started: docs/getting-started.md |
| 55 | +- Configuration: docs/configuration.md |
| 56 | +- Models and database: docs/models.md, docs/database.md |
| 57 | +- Services: docs/services/web.md, docs/services/discord.md |
| 58 | +- APIs and routes: docs/api.md |
| 59 | +- Advanced topics: docs/authentication.md, docs/file-management.md, docs/vendor-integrations.md, |
| 60 | + docs/error-monitoring.md, docs/deployment.md, docs/testing.md, docs/faq.md |
| 61 | + |
| 62 | + For developers: |
| 63 | + - docs/developer-setup.md |
| 64 | + - docs/coding-standards.md |
| 65 | + - docs/service-development.md |
| 66 | + - docs/debugging.md |
| 67 | + |
| 68 | +## Recommended path |
| 69 | + |
| 70 | +1. Read docs/getting-started.md |
| 71 | +2. Skim docs/architecture.md |
| 72 | +3. Configure web service and run a local server |
| 73 | +4. Explore docs/models.md and docs/database.md, then add a simple model |
| 74 | +5. Add/modify a route in routes/web.py and a controller |
| 75 | +6. Optional: enable Discord service and add a command |
| 76 | +7. Deploy with Docker (docs/deployment.md) |
| 77 | + |
| 78 | +## Examples |
| 79 | + |
| 80 | +See EXAMPLES.md for end-to-end snippets, including creating custom services. |
| 81 | + |
| 82 | +## Troubleshooting |
| 83 | + |
| 84 | +- Port already in use: change FLASK_PORT or stop the conflicting process. |
| 85 | +- Flask not installed: ensure `pip install -r requirements.txt` succeeded. |
| 86 | +- Database errors: verify DATABASE_URL and that `database/db.py` initializes correctly. |
| 87 | + |
| 88 | +## Next steps |
| 89 | + |
| 90 | +- Explore tests in `tests/` and add your own. |
| 91 | +- Contribute improvements—see CONTRIBUTING.md. |
| 92 | + |
| 93 | +Happy building with Zeython! |
0 commit comments