Skip to content

ensean/story-factory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Stories Factory

A web application that generates picture books based on user input. The application leverages AWS Bedrock Claude for story generation and AWS Bedrock Nova Canvas for picture generation.

Architecture

  • Frontend: Vue.js
  • Backend: Node.js
  • AI Services: AWS Bedrock (Claude and Nova Canvas)

Project Structure

stories_factory/
├── frontend/           # Vue.js frontend application
│   ├── src/
│   │   ├── components/ # Reusable Vue components
│   │   ├── views/      # Page components
│   │   ├── assets/     # Static assets
│   │   └── store/      # State management
│   ├── public/         # Public assets
│   └── package.json    # Frontend dependencies
└── backend/            # Node.js backend application
    ├── routes/         # API routes
    ├── controllers/    # Request handlers
    ├── services/       # Business logic
    ├── config/         # Configuration files
    ├── uploads/        # Stored images and stories
    └── package.json    # Backend dependencies

Features

  • User-friendly interface for entering story prompts
  • AI-generated story content using AWS Bedrock Claude
  • AI-generated illustrations using AWS Bedrock Nova Canvas
  • Preview and download options for the generated picture books

Setup Instructions

Prerequisites

  • Node.js (v16+)
  • AWS account with access to Bedrock services
  • AWS CLI configured with appropriate permissions

Backend Setup

  1. Navigate to the backend directory:

    cd backend
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file based on .env.example:

    cp .env.example .env
    
  4. Update the .env file with your AWS credentials and configuration.

  5. Start the server:

    npm start
    

Frontend Setup

  1. Navigate to the frontend directory:

    cd frontend
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file based on .env.example:

    cp .env.example .env
    
  4. Start the development server:

    npm run serve
    
  5. Access the application at http://localhost:8080

License

MIT

About

story factory for kids, credits to amazon q cli developer and bedrock

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published