Skip to content
darshangoudaPublic

About

StoryTale is a full-stack web app where users create story tales with AI-generated images. Built with ReactJS & Bootstrap for the frontend and Java Spring Boot, JWT, Spring Data JPA, PostgreSQL for the backend. Integrated OpenAI API for dynamic image generation.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

StoryTale

StoryTale is a visual page builder with a React frontend and a Spring Boot backend. Users can design responsive HTML pages, save them to PostgreSQL, and upload or generate images.


Features

  • Responsive visual page builder and HTML export.
  • Public UUID image URLs with prompt metadata stored in PostgreSQL.
  • StoryTale page title and complete HTML saved under the signed-in account.
  • Saved pages sync from the account across browsers; unsaved drafts remain local to the browser.
  • JWT authentication.

Technologies Used

Frontend:

  • React
  • TypeScript
  • Vite

Backend:

  • Java
  • Spring Boot
  • Spring Web, Security, Data JPA, and Spring AI
  • PostgreSQL
  • JWT Token

Setup Instructions

StoryTale frontend:

  1. Navigate to StoryTale-FrontEnd.
  2. Install dependencies:
    npm install
  3. Run the development server:
    npm run dev
  4. The frontend will run on http://localhost:3000.

Backend:

  1. Ensure you have Java and Maven installed.
  2. Clone the repository:
    git clone https://github.com/darshangouda/storytale.git
  3. Navigate to the backend directory.
  4. Image generation uses random test photos from Lorem Picsum by default. To use OpenAI image generation instead, set these environment variables:
    IMAGE_GENERATION_PROVIDER=openai
    OPENAI_KEY="your_openai_api_key"
    Picsum images are random photos and do not reflect the story prompt. To use the default Picsum test images, no image-generation API key is required.
  5. Build and run the Spring Boot application.
    mvn spring-boot:run
  6. The backend will run on http://localhost:8080.

Usage

  • Sign in with an existing backend account.
  • Create a page and use Save to StoryTale to persist its title and HTML to PostgreSQL.
  • Upload or generate images; images and their prompts are stored independently of page layout.

On startup, the backend migrates existing GridCraft pages and images into the renamed StoryTale tables while preserving their IDs and data. It also migrates legacy StoryTale records that contain a generated HTML document, then removes the old story_line, story_tale, writer_info, gridcraft_page, and gridcraft_image tables. Writer accounts and recognized page/image data are retained.


Environment Variables

To enable OpenAI image generation, set these variables in the backend environment (or StoryTale-BackEnd/.env):

IMAGE_GENERATION_PROVIDER=openai
OPENAI_KEY="your_openai_api_key"

Contributors/Contact

Developed by Darshangouda.


License

This project is not licensed.

About

StoryTale is a full-stack web app where users create story tales with AI-generated images. Built with ReactJS & Bootstrap for the frontend and Java Spring Boot, JWT, Spring Data JPA, PostgreSQL for the backend. Integrated OpenAI API for dynamic image generation.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages