This API serves as a backend for the Generative Web project. It serves AI generated webpages based on a users input.
It uses a template process to store generic frontend templates with placeholders for the AI generated content. The API then replaces the placeholders with the generated content and serves the page to the user.
- Clone the repository
- Open devcontainer
- Run
airto start the server
- Send a POST request to
/generatewith the following body:
{
"template": "template_name",
"content": {
"tags": ["tag1", "tag2", "tag3"],
}
}