Git Product home page Git Product logo

craftstats's Introduction

CraftStats

Node.js CI

Minecraft servers tracker built on Cloudflare Workers with Vue.js.

You can see it live on craftstats.net

Screenshot

Features

  • Fast, it's running on more than 300 datacenters worldwide thanks to the power of Cloudflare Workers
  • Historical players count of the last months
  • Fully responsive
  • UI to edit servers
  • Minecraft: Bedrock Edition support

Installation

  • Install Wrangler CLI
  • Install dependencies with npm install
  • Copy wrangler.example.toml to wrangler.toml
  • Create a KV namespace named KV_SERVERS and add its id in the wrangler.toml
  • Build the Vue.js frontend with cd frontend && npm install && npm run build
  • Publish to Workers with workers publish

Edit servers list

  • Add an edit token in the wrangler.toml by editing the value of SERVERS_EDIT_TOKEN
  • Go on /editor and change servers
  • Enter the token and save

Credits

CraftStats is inspired by MineStats (by nathan818), which is unfortunately no longer maintained today.

craftstats's People

Contributors

mrmicky-fr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

craftstats's Issues

Unable to find "index.js"

[ERROR] The expected output file at "index.js" was not found after running custom build: npm install && npm run build.

The main property in wrangler.toml should point to
the file generated by the custom build.

what should I do?

Invalid token

Hello there,
I've currently deployed CraftStats but seems like that the SERVERS_EDIT_TOKEN var is not working properly.

image

It's passed as a variable while deploying but when you try to use the token in /editor it says
An error occurred: invalid_token

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.