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.
- 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.
- React
- TypeScript
- Vite
- Java
- Spring Boot
- Spring Web, Security, Data JPA, and Spring AI
- PostgreSQL
- JWT Token
- Navigate to
StoryTale-FrontEnd. - Install dependencies:
npm install
- Run the development server:
npm run dev
- The frontend will run on
http://localhost:3000.
- Ensure you have Java and Maven installed.
- Clone the repository:
git clone https://github.com/darshangouda/storytale.git
- Navigate to the backend directory.
- Image generation uses random test photos from Lorem Picsum by default. To use OpenAI image generation instead, set these environment variables:
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.
IMAGE_GENERATION_PROVIDER=openai OPENAI_KEY="your_openai_api_key"
- Build and run the Spring Boot application.
mvn spring-boot:run
- The backend will run on
http://localhost:8080.
- 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.
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"Developed by Darshangouda.
This project is not licensed.