Getting Started
This guide provides a step-by-step tutorial on how to start Re:Earth Visualizer locally.
Before Start
-
To set up and run the Re:Earth Visualizer frontend, server and database, ensure you meet the following prerequisites:
- Go: Download and install Go from the official site: Download Go.
- Docker: Install Docker by following these instructions: Install Docker.
- Node.js: Download and install Node.js from the official site: Download Node.js.
- Yarn: Install Yarn by following these instructions: Install Yarn. V4 is recommended.
- Git: Download and install Git from the official site: Download Git.
-
Clone the code:
Open your terminal (or PowerShell if you’re on Windows) and navigate to your desired working directory.
Setup Server and Database
Make sure Docker is properly installed and running on your machine.
-
From your cloned directory, navigate to the server folder and set up the database:
-
Create and configure the
.env
file in the server directory to use mock authentication. -
Start the backend server.
-
Register a new mockuser.
Setup Web
-
Navigate to the web directory of your visualizer project and set up local .env file.
-
Add the following environment variables to the
.env
file: -
Install dependencies and start the frontend server.
Done!
You should now be able to access the Re:Earth Visualizer locally at http://localhost:3000
.