项目作者: inpercima

项目描述 :
Shows the status of a minecraft server.
高级语言: TypeScript
项目地址: git://github.com/inpercima/mc-status.git
创建时间: 2021-02-20T19:29:04Z
项目社区:https://github.com/inpercima/mc-status

开源协议:MIT License

下载


Minecraft server status

MIT license
Node CI/CD

Shows the status of a minecraft server.

For demonstration I use as default my own minecraft server.

This app is online under mc-status.inpercima.net.

This project was generated with swaaplate version 2.5.3.

Prerequisites

Angular CLI

Node, npm or pnpm

  • node 22.14.0 or higher in combination with
    • npm 10.9.2 or higher or
    • pnpm 10.4.1 or higher, used in this repository

Getting started

  1. # clone project
  2. git clone https://github.com/inpercima/mc-status/
  3. cd mc-status
  4. # install tools and frontend dependencies
  5. pnpm install

Create environment files for development mode and production mode.

  1. cp src/environments/environment.ts src/environments/environment.dev.ts
  2. cp src/environments/environment.ts src/environments/environment.prod.ts

Note: These files will not be under version control but listed in .gitignore.

Usage

Recommendation

It is recommanded to use a server to get full access of all angular.
For the other options your app should run on a server which you like.

Run in development mode

  1. # build, reachable on http://localhost/app/path/to/dist/
  2. pnpm build:dev
  3. # build and starts a server, rebuild after changes, reachable on http://localhost:4200/
  4. pnpm start

Package

  1. # build in production mode, compressed
  2. pnpm build:prod

Tests

  1. # test
  2. ng test
  3. # e2e
  4. ng e2e

Configuration

General

All 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.

Table of contents

api

Defines the URL to the backend.

  • default: ./
  • type: string

appname

Applicationwide title of the app, displayed in title and toolbar.

  • default: Minecraft server status
  • type: string

defaultRoute

The default route and the route to be redirected after a login if no route is stored or if a route does not exist.

  • default: dashboard
  • type: string

production

Defines whether the app is in production or not.

  • default: false
  • type: boolean
  • values: true/false

theme

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.

serverIp

Default server ip for the minecraft server.

serverPort

Default server port for the minecraft server.