Skip to content

nihalerdal/ai-story-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

AI Story Generator

An interactive full-stack web app that creates short children’s stories from a single keyword — powered by Google Gemini 2.0 Flash model.

This project is built using the MERN stack (MongoDB, Express, React, Node.js) and demonstrates how frontend and backend communicate to generate creative content with AI.


🚀 Live Demo

🧠 Features

  • Generate a short AI children’s story from any keyword
  • Uses Google Gemini API for story generation
  • Express backend with clean route/controller structure
  • React frontend for user interaction
  • CORS and dotenv setup for secure communication

🛠️ Tech Stack

React, Axios, Node.js, Express, Axios, dotenv, cors
AI Model: Gemini 2.0 Flash (Google AI Studio)


📦 Installation Guide

Follow these steps to set up and run the project locally 👇

1 Clone the Repository

git clone https://github.com/YOUR_GITHUB_USERNAME/ai-story-generator.git
cd ai-story-generator

2 Set Up the Backend

cd backend
npm install

Create a .env file inside the backend folder and add the following:

GOOGLE_API_KEY=your_google_api_key_here

Then start the backend:

npm start

3 Set Up the Frontend

cd ../frontend
npm install

About

A fullstack app practice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors