A web application for building and managing world lore, characters, and story elements with AI-powered assistance.
- Frontend: Next.js 14 with TypeScript and Tailwind CSS
- Backend: Flask (Python)
- Node.js 18+ and npm
- Python 3.8+
- pip (Python package manager)
- Install dependencies:
npm install- Run the development server:
npm run dev- Open http://localhost:3000 in your browser.
- Navigate to the backend directory:
cd backend- Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Run the Flask server:
python app.pyThe backend will run on http://127.0.0.1:5000
WorldBuilder/
├── app/ # Next.js app directory
│ ├── page.tsx # Home/landing page
│ ├── login/ # Login page
│ ├── signup/ # Signup page
│ └── globals.css # Global styles
├── backend/ # Flask backend
│ ├── app.py # Main Flask application
│ └── requirements.txt
├── package.json # Node.js dependencies
└── tailwind.config.js # Tailwind configuration
- Home Page: Landing page with feature highlights
- Authentication: Login and signup pages
- Clean UI: Modern design matching the WorldBuilder aesthetic
- Primary: Purple/Blue (#5B21B6, #4F46E5)
- Background: White (#FFFFFF)
- UI Elements: Light Gray (#F5F5F5)
- Text: Dark Gray (#333333)
- Secondary Text: Gray (#888888)
- The backend currently uses an in-memory user store. Replace with a database (e.g., PostgreSQL, MongoDB) for production.
- JWT tokens are used for authentication.
- CORS is enabled for development. Configure appropriately for production.