A modern web-based creative writing companion powered by AI
WritingWay Web is a complete rewrite of the original desktop application, now available as a modern web application. It provides writers with powerful AI assistance, project management, and collaborative writing tools through an intuitive web interface.
- 🤖 AI Writing Assistant: Integrated OpenAI and Google Gemini AI models for writing assistance, brainstorming, and content improvement
- 📝 Rich Text Editor: Modern WYSIWYG editor with auto-save functionality
- 📁 Project Management: Organize your writing projects with hierarchical document structure
- 💬 Interactive AI Chat: Real-time conversation with AI for creative guidance and feedback
- 🎨 Modern UI: Clean, responsive interface built with React and Material-UI
- 🔐 User Authentication: Secure user accounts with JWT-based authentication
- ☁️ Web-Based: Access your writing from anywhere with an internet connection
- 🚀 Fast & Responsive: Built with modern web technologies for optimal performance
- Python 3.8+ for the backend
- Node.js 16+ for the frontend
- MySQL database
- Git for version control
-
Clone the repository:
git clone https://github.com/unsw-cse-comp99-3900/COMP9900-W10A-Bread.git cd COMP9900-W10A-Bread -
Quick Start (Recommended):
For Linux/macOS:
./start_dev.sh
For Windows:
start_dev.bat
-
Manual Setup:
Backend Setup:
cd backend python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -r requirements.txt cp .env.example .env # Edit .env with your configuration uvicorn main:app --host 0.0.0.0 --port 8001
Frontend Setup:
cd frontend npm install cp .env.example .env # Edit .env with your configuration npm start
- Frontend: http://localhost:3000
- Backend API: http://localhost:8001
- API Documentation: http://localhost:8001/docs
Backend (.env):
DATABASE_URL=mysql+pymysql://root:password@localhost/ai_syory
SECRET_KEY=your-secret-key-here
OPENAI_API_KEY=your-openai-api-key
GEMINI_API_KEY=your-gemini-api-keyFrontend (.env):
REACT_APP_API_URL=http://localhost:8001/api- FastAPI - Modern Python web framework
- SQLAlchemy - Database ORM
- JWT Authentication - Secure user sessions
- OpenAI/Google Gemini Integration - AI writing assistance
- React 18 - Modern UI framework
- Material-UI - Component library
- React Query - Data fetching and caching
- Zustand - State management
- React Quill - Rich text editor
- MySQL - Production database
- User management, projects, documents, AI conversations
# Build and run with Docker Compose
docker-compose up --build
# Access the application
# Frontend: http://localhost:3000
# Backend: http://localhost:8001The API documentation is automatically generated and available at:
- Swagger UI: http://localhost:8001/docs
- ReDoc: http://localhost:8001/redoc
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- FastAPI - High-performance web framework
- SQLAlchemy - Python SQL toolkit
- OpenAI - AI language models
- Google Gemini - AI language models
- React - UI library
- Material-UI - React component library
- React Query - Data synchronization
- React Quill - Rich text editing
For questions, issues, or feature requests:
- Open an issue on GitHub
Note: This is the web version of WritingWay. The original desktop application files have been replaced with this modern web-based implementation.