novel new
Last updated
Was this helpful?
Last updated
Was this helpful?
Provides scaffolding methods for easy feature development.
It is possible to use Anthropic's Claude to create features for your instance. Novel scaffolding will make sure that the code generated will work within the Novel codebase.
You can get your Anthropic keys from the guide below
DISCLAIMER
It is important that you review the code that is generated by your scaffold before you commit and push to production.
Do your due diligence!
novel new api
This command will create an api endpoint for you and put it in /app/api
. You can then modify and enrich this endpoint once its generated.
You can start by running
You will be asked the following
The identifier of this new api, this will be used for the function name in the api spec
The path of this new api, it will be registered under the path you provide
The HTTP method this api will respond with
If the endpoint require authorization from a cookie session or api key. See Sessions
If Anthropic is enabled: a prompt that describes what the endpoint should do. This generates the following: Implementation, API Spec, Helper, Test File.
Your files are now available on the /app/api/identifier-in-step-1
novel new model
This command will create migrations for you that in turn, generate model files during development.
It will ask you multiple times until you tell it to stop.
You can start this by running
You will be asked the following
The name of the table you are creating
The name of the column used as a primary key
If Anthropic is enabled: a prompt that describes what the table should do.
It will ask you if you want to add more tables
Your files are now available on the /app/migrations
novel new task
This command creates a background job or a cron job based on your intent.
You can start this by running
You will be asked the following
The task identifier that is used to register this task
If it is a cron job or not
If it is a cron job, it will ask the schedule
If Anthropic is enabled: a prompt that describes what the task should do.
Your files are now available on the /app/tasks/id-of-the-task-in-step1
2024-12-20 - Initial Documentation