Reverse engineered prompt

GitHub

Build me a small web app called TinyTales where people can sign up, log in, and generate custom short stories from a prompt. I want users to be able to choose a genre and the story length, then have the app create the story with a local AI model and save it to their account so they can come back later and read it again.

Please make it feel like a real product, not just a single prompt box. There should be a dashboard with story history, a page to view each story, basic profile and preferences, and options to export stories as text and PDF. Use PHP for the website side, MySQL for storing users and stories, and connect the story generation to the Python script with Ollama and TinyLLaMA. Sessions and secure database access should be handled properly.

If the repo already has starter files, continue from that structure. Make it runnable locally with XAMPP, and add any setup details or schema needed so I can actually test it end to end. Look up current docs online if you need to.

Have a live product UI? Try website reverse