Shows the status of a minecraft server.
For demonstration I use as default my own minecraft server.
This app is available at mc-status.inpercima.net.
node 24.16.0or higher in combination withnpm 11.13.0or higher orpnpm 10.34.4or higher, used in this repository
Install pnpm by running:
npm install -g pnpm@10.34.4This repo uses pnpm as package manager.
You can also use npm for your local work but changes will be made by pnpm only.
@angular/cli 22.0.7or higher
Install @angular/cli by running:
pnpm install -g @angular/cli@212# clone project
git clone https://github.com/inpercima/mc-status
# navigate to project
cd mc-status
# install tools and frontend dependencies
pnpm install
# create environment files for `development mode`.
cp src/environments/environment.ts src/environments/environment.dev.tsNote: This file will not be under version control (listed in .gitignore).
Edit src/environments/environment.dev.ts to match your local setup:
- Set
production: false - Configure
apiURL (default:./) - Adjust other settings as needed (see Configuration section)
pnpm startThe application will be available at http://localhost:4200/ and automatically reload when you make changes to the source code.
pnpm build:devThis runs ng lint followed by ng build --configuration=development, creating a development build in the dist/ directory.
Edit src/environments/environment.prod.ts:
- Set
production: true - Configure production
apiURL - Set appropriate theme and other production-specific settings
pnpm build:prodThis runs ng lint followed by ng build (production configuration), creating an optimized bundle in dist/browser/.
The app did not have a specified version. After a push to the main branch the app will be deployed by the github actions using github pages.
# run unit tests
ng test
# run end-to-end tests
ng e2e
# lint files
ng lintAll options have to been set in the environment files but some of them do not need to be changed.
All defaults refer to the environment file (environment.ts), they are prepared in development mode (environment.dev.ts).
Change for production mode the option production to true.
Defines the URL to the backend.
- default:
./ - type:
string
Applicationwide title of the app, displayed in title and toolbar.
- default:
Minecraft server status - type:
string
Defines whether the app is in production or not.
- default:
false - type:
boolean - values:
true/false
Name of a pre-build-theme or a custom theme.
- default:
rose-red - type:
string - values:
rose-red/azure-blue/magenta-violet/cyan-orange/custom
To modify the custom theme just edit the colors and themes in themes.scss.
Default server ip for the minecraft server.
Default server port for the minecraft server.