Quick Start¶
Create a project¶
Visit http://127.0.0.1:8000 — your app is running.
Add a route¶
Open app/main.py:
Add a model¶
shakti generate api Post title:str body:text views:int
shakti makemigrations "add posts"
shakti migrate
Done. You have a full CRUD API at /posts.
Add AI¶
In config/settings.yaml:
In app/main.py:
Now POST /ai/chat with {"message": "Hello!"} works.