Skip to content

camptocamp/geo-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

185 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geo-challenge

This project is a web-based geography guessing game. The user is shown a fixed location in a 3D map view and has to guess where it is on a 2D map.

online demo

Game Features

  • Country Selection: Players can choose a country to play in. The game will then present locations within the selected country.
  • Leaderboard: The game includes an online leaderboard per country.
  • i18n Support: The game is translated into English, French, and German.

Building and Running

Prerequisites

Installation

  1. Clone the repository.

  2. Install the dependencies:

    npm install

Running the Development Server

To run the application locally with a development server and hot-reloading, use the following command:

npm start

This will start the Vite development server, and you can access the application at http://localhost:5173.

Building for Production

To build the application for production, which creates an optimized and minified version of the code, run:

npm run build

The output will be placed in the dist directory.

Deployment

ArgoCD

Pipeline:

  1. On push to the master branch, GitHub Actions automatically builds and publishes a Docker image to ghcr.io/camptocamp/geo-challenge:latest.
  2. camptocamp/argocd-gs-plg-apps:update-geo-challenge-image.yaml is triggered to update the image in the argocd configuration.

Libraries used

Releases

No releases published

Packages

 
 
 

Contributors