This project is a web application built with Next.js that provides an interactive interface for displaying information about video games using the RAWG API. Users can search for games, view detailed information, and download games directly from the server.
- Game Search: Users can search for video games using various criteria.
- Game Information: Detailed information about each game, including title, genre, release date, and more.
- Download Option: Users can download games directly from the server.
- Responsive Design: The interface is designed to be responsive and user-friendly across devices.
- Next.js: A React framework for building server-side rendered applications.
- RAWG API: A rich API providing access to video game data.
- React: For building user interfaces.
- CSS: For styling the application.
To set up and run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/Strange500/GameList
-
Navigate to the project directory:
cd GameList -
Install the dependencies:
npm install
-
Set up environment variables:
Create a
.env.localfile in the root of the project and add your RAWG API key:RAWG_API_KEY=your_api_key_here -
Run the development server:
npm run dev
-
Open the application:
Open your browser and go to
http://localhost:3000.
To set up and run this project using Docker, follow these steps:
-
Build the Docker image:
docker build -t gamelist:latest . -
Run the Docker container: Pass the required environment variables as arguments: AUTH_AUTHENTIK_ID, AUTH_AUTHENTIK_SECRET, AUTH_AUTHENTIK_ISSUER, RAWG_API_KEY
docker run -p 3000:3000 -e AUTH_AUTHENTIK_ID=auth_id -e AUTH_AUTHENTIK_SECRET=auth_secret -e AUTH_AUTHENTIK_ISSUER=auth_issuer -e RAWG_API_KEY=api_key_rawg -e GAME_FOLDER_PATH=/games -v path_to_games_folders:/games gamelist-
Open the application:
Open your browser and go to
http://localhost:3000.
Once the application is running:
- Use the search bar to find video games by title, genre, or other criteria.
- Click on a game to view detailed information, including images, descriptions, and release dates.
- If the game is available for download, click the download button to save it to your device.
- Thanks to the RAWG API for providing a rich source of video game data.
