</a>
A free and open-source version of the popular geography game inspired by GeoGuessr. This React based project aims to provide a fun and educational way to explore the world through Google Street View imagery.
Before you start, ensure you have the following installed:
git clone https://github.com/codergautam/worldguessr.git
cd worldguessr
pnpm install
pnpm run dev
Open http://localhost:3000 with your browser to see the result.
If you’re deploying WorldGuessr on a VPS or any server with an external IP (not localhost), you must configure these environment variables in your .env file:
# Replace YOUR_IP with your server's IP address or domain
NEXT_PUBLIC_API_URL=YOUR_IP:3001
NEXT_PUBLIC_WS_HOST=YOUR_IP:3002
Example with IP:
NEXT_PUBLIC_API_URL=123.45.67.89:3001
NEXT_PUBLIC_WS_HOST=123.45.67.89:3002
Example with domain (after setting up nginx):
NEXT_PUBLIC_API_URL=api.yourdomain.com
NEXT_PUBLIC_WS_HOST=ws.yourdomain.com
MONGODB=mongodb+srv://username:password@cluster.mongodb.net/worldguessr
NEXT_PUBLIC_GOOGLE_CLIENT_ID=your_client_id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your_client_secret
For detailed environment variable documentation, see docs/environment-variables.md.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag “enhancement”. Don’t forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Distributed under the MIT License. You are free to use, modify, and distribute this project for personal or commercial use. See LICENSE.md for more information.
Join the Discord community here to discuss new features, report bugs, talk to the developers and connect with other players.
You can email me privately at gautam@worldguessr.com