Welcome to the Pokemon Battle Simulation project! This application simulates a turn-based Pokemon battle using the Nest.js framework, Redis for data storage and caching, sockets for real-time communication, and Docker for containerization.
- Utilize Redis pub/sub storing battle data, improving performance.
- Real-time updates using WebSockets to display battle progress to players.
- Dockerized for easy deployment and scalability.
Make sure you have the following tools installed:
- Node.js (v14 or higher)
- Docker
- Docker Compose
-
Clone this repository:
git clone https://github.com/yourusername/pokemon-battle-simulation.git cd pokemon-battle-simulation
-
Install dependencies
npm install
-
Configure .env
PUBLIC_API_URL=https://pokeapi.co/api/v2/ REDIS_HOST=localhost REDIS_PORT=6379 REPO_IMAGES=https://img.pokemondb.net/sprites/black-white/anim/
- Start the redis server and the Nest.js app
docker-compose up -d npm run start:dev
Can be found here Front Application