This repository contains the codebase for the Pokedex Web Application. The application uses a React frontend, a NestJS backend, Redis for caching, and PostgreSQL for the database.
Homepage | Pokemon List | Pokemon Details |
This project uses the following technologies:
React |
TypeScript |
Nest.Js |
PostgreSQL |
Redis |
Docker |
git clone https://github.com/eidan66/pokedex-web.git
cd pokedex-web
Navigate to the backend
directory and create a .env
file with the following content:
(You can create JWT_SECRET when running this command inside the terminal)
node -e "console.log(require('crypto').randomBytes(64).toString('hex'))"
# JWT Secret
JWT_SECRET=your-super-duper-secret-jwt
# Database Configuration
DB_HOST=postgres
DB_PORT=5432
DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_NAME=postgres
# Redis Configuration
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_TTL=300
Run the following command to start the application using Docker Compose:
docker-compose up --build
- Frontend: Open your browser and navigate to http://localhost:3000.
- Backend: The API is available at http://localhost:8000.
To stop the Docker containers, run:
docker-compose down
Feel free to open issues or submit pull requests to improve this project.