This page shows you how to download the project, install it and run it on your own computer.
- Node.js 20.19 or newer (or 22.12 or newer). Check your version with
node -v. If you don't have Node.js, download the LTS version from nodejs.org. - npm (it is installed together with Node.js).
- Git (optional, only needed for the Git download method).
- A code editor. Visual Studio Code is a good free choice.
Choose one of the two methods.
git clone https://github.com/your-name/minecraft-landing-page.git
cd minecraft-landing-pageThe advantage of Git is that you can pull updates later.
- Open the repository page on GitHub.
- Click Code, then Download ZIP.
- Extract the ZIP file to a folder of your choice.
- Open that folder in your editor.
Open a terminal inside the project folder. In Visual Studio Code you can do this with Terminal > New Terminal. Then run:
npm installThis downloads everything the website needs into a folder called node_modules. You only have to do this once.
npm run devThe terminal shows an address, usually http://localhost:5173. Open it in your browser.
- Every time you save a change in a config file, the page updates automatically.
- The first start can take a little longer because icons are prepared once.
- Press
Ctrl + Cin the terminal to stop the server.
- Open
src/config/site.json. - Change
server.nameandserver.ipto your own server. - Save the file and look at your browser: the page has updated.
Continue with the Configuration page to learn about all settings.
You only need to touch the folders marked with an arrow.
minecraft-landing-page/
├── public/
│ └── images/ <- your logo, favicon and images
├── src/
│ ├── config/
│ │ ├── site.json <- all texts, links and server data
│ │ └── themes/ <- color themes (one JSON file per theme)
│ ├── components/ Page sections (code)
│ ├── hooks/ Helper logic (code)
│ └── utils/ Helper functions (code)
├── index.html
├── package.json
└── vite.config.js
| Command | What it does |
|---|---|
npm install |
Installs all dependencies (once) |
npm run dev |
Starts the development server for editing |
npm run build |
Creates the final website in the dist folder |
npm run preview |
Shows the built website locally, to test it before uploading |
npm run test |
Build the website locally and preview (preferred over npm run dev) |
npm run lint |
Checks the code for problems |
- Server name and IP are set
- Discord and shop links are set
- Your logo is placed at
public/images/logo.png - Your favicon is placed at
public/favicon.png - The placeholder images (from picsum.photos) are replaced with your own
node or npm is not recognized
Node.js is not installed or the terminal was opened before the installation. Install Node.js and open a new terminal.
An error mentions an unsupported Node.js version Update Node.js to version 20.19+ or 22.12+.
The port is already in use Vite automatically picks the next free port. Use the address shown in the terminal.
The page is blank or shows an error
Open the browser console with F12 and check the terminal. The most common cause is a typo in a JSON file, such as a missing comma. See Configuration.
Updating with Git
Run git pull. If you changed config files yourself, Git may report a conflict. In that case keep your own values and take over only the new entries.