Toolverse
All skills

enferno-dev

by level09

Development skill for Enferno Flask framework. Use when implementing features, fixing bugs, or writing code for Enferno-based applications. This includes creating models, API endpoints, Vue.js frontend components, database operations, or any development task within the Enferno

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
level09
Category
Frontend

About this skill

Development skill for Enferno Flask framework. Use when implementing features, fixing bugs, or writing code for Enferno-based applications. This includes creating models, API endpoints, Vue.js frontend components, database operations, or any development task within the Enferno ecosystem. Triggers: creating blueprints, adding models, building APIs, Vue/Vuetify components, Celery tasks, database migrations.

How to use

  1. Zainstaluj zależności projektu Enferno i uruchom serwer deweloperski poleceniem uv run flask run --port 5001 — domyślnie nasłuchuje na porcie 5001 na macOS.
  2. Zainicjuj bazę danych poleceniami uv run flask create-db oraz uv run flask install, aby utworzyć użytkownika administratora.
  3. Twórz nowe funkcjonalności w strukturze blueprintów: utwórz folder feature_name w katalogu enferno/ z plikami views.py (trasy i endpointy API), models.py (modele SQLAlchemy) i opcjonalnie forms.py (formularze WTForms).
  4. Definiuj modele, dziedzicząc z BaseMixin i implementując metody to_dict() oraz from_dict() — używaj db.Column() do definiowania pól i db.Model jako klasy bazowej.
  5. Zarejestruj blueprint w pliku app.py, importując bp z views.py i wywołując app.register_blueprint(feature_bp).
  6. Sprawdzaj jakość kodu poleceniami uv run ruff check . i formatuj go za pomocą uv run ruff format . przed zatwierdzeniem zmian.

Related skills