This project is a web-based game that recreates a Warhammer Fantasy Roleplay (WFRP) 4th edition-inspired experience using a large language model (LLM) as the game master.
- Frontend: React.js with Tailwind CSS (served statically)
- Backend: Node.js with Express.js
- Database: MongoDB
- LLM: OpenAI GPT API (or similar)
- Clone the repository.
- Backend Setup:
- Navigate to the
backenddirectory:cd backend - Install dependencies:
npm install - Create a
.envfile and add yourMONGO_URI,JWT_SECRET, andOPENAI_API_KEY. - Start the server:
npm start
- Navigate to the
- Frontend:
- The backend serves the frontend files from the
publicdirectory. - Open your browser and navigate to
http://localhost:5000(or the port you specified).
- The backend serves the frontend files from the