Golpo is an AI-generated story-based game where the narrative unfolds based on the player's choices. Powered by Hugging Face Inference, Golpo provides dynamic and engaging storytelling, allowing players to experience unique adventures every time they play.
Golpo is a project that leverages AI to generate interactive stories. Players are presented with scenarios and must make choices that will determine the direction of the story. The game uses Hugging Face Inference to generate the story content, ensuring a vast range of possible narratives.
- AI-generated storylines based on user input.
- Dynamic decision-making with multiple possible outcomes.
- Separation of backend and frontend for modular development.
- Real-time interactions with the story, powered by AI.
- Node.js: JavaScript runtime for backend logic.
- Express: Web framework for handling HTTP requests.
- TypeScript: Type safety and tooling.
- Hugging Face Inference: AI library for generating story content.
- Redis: In-memory data structure store for caching.
- ioredis: Redis client for Node.js.
- Cors: Middleware for enabling CORS.
- dotenv: Environment variable management.
- React: JavaScript library for building user interfaces.
- Vite: Next-generation frontend tooling.
- Chakra UI: UI component library for building accessible React applications.
- Tailwind CSS: Utility-first CSS framework for styling.
- Axios: HTTP client for making requests to the backend.
- React Router: Routing library for React applications.
-
Clone the repository and navigate to the backend directory:
git clone https://github.com/yourusername/golpo.git cd golpo/backend
-
Install the required dependencies:
npm install
-
Build the TypeScript code:
npm run build
-
Start the server:
npm start
For development, you can use:
npm run dev
-
Navigate to the frontend directory:
cd ../frontend
-
Install the required dependencies:
npm install
-
Start the development server:
npm run dev
-
To build the frontend for production:
npm run build
After setting up both the backend and frontend, you can start playing the game by navigating to the frontend's development server, usually at http://localhost:3000. The game will present you with various scenarios generated by AI, and you can choose how the story progresses.
Contributions are welcome! If you'd like to contribute to Golpo, please fork the repository and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the ISC License