Welcome to TaleCraft, an interactive web application where users can create, explore, and share stories with the help of AI. Designed with a modern frontend and powerful backend, TaleCraft brings creativity to life through technology.
- ⚛️ React.js
- 🎨 Tailwind CSS
- 🎞️ GSAP (for animations)
- 🟩 Node.js
- ⚙️ Express.js
- 🔐 dotenv
- 🤖 OpenAI API
TaleCraft/
├── client/ # React frontend
│ ├── public/
│ └── src/
│ ├── components/ # Reusable UI components
│ ├── pages/ # Story-related pages
│ └── App.js
├── server/ # Express backend
│ ├── routes/ # API route handlers
│ ├── controllers/ # Logic for handling requests
│ ├── models/ # MongoDB schemas
│ ├── .env.example # Sample env file
│ └── index.js # Server entry point
├── .gitignore
├── README.md
└── package.json
git clone https://github.com/vedhavk/virtual-plant-making
cd talecraftcd client
npm install
npm startcd ../server
npm installCreate a .env file in the server/ directory based on .env.example:
OPENAI_API_KEY=your_openai_key
PORT=5000Start the server:
npm run dev- 🧠 AI-generated stories using OpenAI
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/story/create |
Create a new story |
| GET | /api/story/all |
Fetch all stories |
| GET | /api/story/:id |
Get a story by ID |
| POST | /api/auth/register |
Register new user |
| POST | /api/auth/login |
Login user |
- Collaborative story writing
- Comments and story ratings
- Profile pages for users
- Story sharing & social media integration
- Audio narration for stories
Contributions are welcome!
- Fork the repository
- Create your branch:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add new feature" - Push to the branch:
git push origin feature-name
- Open a Pull Request