Skip to content

CorentinLimier/autocontenthub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Concept

This project creates lambda functions that runs periodically to ask ChatGPT to create new content and deploy it to a static website.

Structure of the project

autocontenthub/
├── frontend/
│   ├─ Lambda that creates the main static pages of the websites and deploy it to S3

├── generator/
│   ├─ Lambda that calls ChatGPT to generate new content

├── static/
│   ├─ Some static pages : default index.html, error.html and load.html to display ChatGPT generated content with the proper CSS theme

├── terraform/
│   ├─ Deploy infra to AWS 

Infrastructure

This project uses (among other things):

  • AWS Lambda : to generate new content using ChatGPT
  • EventBridge : to schedule lambdas
  • DynamoDB : to store a description of generated content
  • S3 : to store content generated
  • Cloudfront / route 53 to serve the website

Generate a new section of content

To generate a new type of content, adds an object in variable contents in terraform/variables.tf

contents = {
    <new_section> = "<prompt>"
}

It will create a new EventBridge event that will trigger the lambda and send the prompt to ChatGPT to generate the content at the fixed schedule.

New section will be available at route /<new_section> of the website.

Appendix

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published