cloudnet-webinterface
cloudnet-webinterface copied to clipboard
CloudNet V4 Webinterface - WIP
Cloudnet Webinterface
CloudNet is a modern application that can dynamically and easily deliver Minecraft oriented software.
Supported Versions
The current supported cloudnet versions. If your version is not supported, please upgrade to the newest one.
| Version | Supported |
|---|---|
| RC-14 | :white_check_mark: |
| RC-13 | :white_check_mark: |
| RC-12 | :white_check_mark: |
| RC-11 | :white_check_mark: |
| RC-10 | :x: |
My dashboard is empty
You forgot to give yourself permissions. Create a user by following these simple steps:
- Install the "CloudNet-Rest" module using
modules install CloudNet-Restin your CloudNet console. - Create a new user with the
rest user create <username> <password>command in your CloudNet console. (Example:rest user create notch foobar, will create user "notch" with password "foobar") - Assign the required permissions using
rest user <username> add scope global:adminin your CloudNet console. (Example:rest user notch add scope global:adminwill grant user "notch" admin permissions on your web interface) - If the webinterface is started, log in with the username and password you just created.
Getting Started
Make sure you have pnpm installed using:
npm i -g pnpm
First, install the packages using:
pnpm install
To start the server, use the following command:
pnpm run dev
Open http://localhost:3000 with your browser to see the result.
Testing
This project includes Jest and React Testing Library for testing. To run tests:
pnpm test
To run tests in watch mode:
pnpm run test:watch
Tests are located in the src/__tests__ directory.
.env
Want to host the website yourself?
Copy .env.example to .env and change NEXT_PUBLIC_DOMAIN to your own domain (including http or https).
Pre-fill CloudNet address
So you want to fill in your user/pass without the address every single time?
Fill in NEXT_PUBLIC_CLOUDNET_ADDRESS in your .env file, like for example: NEXT_PUBLIC_CLOUDNET_ADDRESS=127.0.0.1:2812, this will autofill it for you.
If you want to use a domain: NEXT_PUBLIC_CLOUDNET_ADDRESS=https://cloudnet.example.com.
Bugs may occur!
Meaning if you encounter any issues, please open up an issue. You are welcome to contribute to this project and create a PR.