npm installTo run this program locally, you'll need to add the required environment variables. Get a gemini API key here
# gemini api
GEMINI_API="" # insert your API key here
GEMINI_MODEL="gemini-2.0-flash"
# local database hosting
MYSQLHOST=localhost
MYSQLUSER=root
MYSQLPASSWORD="" # enter your mysql password here
MYSQLDATABASE=story_gen
PORT=5050
ENV=local
DATABASE_URL=mysql://root:ziZqdUyLxeiqsDKgfQcpGJdXPpLYheGo@mysql.railway.internal:3306/railway
run the application
npm startrun the frontend only
cd frontend
npm run devrun the backend only
cd backend
node server.jsOpen http://localhost:5173 (Vite default) with your browser to see the result.