Coder Social home page Coder Social logo

eyduh / hc-tcg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from martinkadlec0/hc-tcg

0.0 0.0 0.0 104.27 MB

Hermitcraft TCG

Home Page: https://hc-tcg.fly.dev

License: GNU General Public License v3.0

Shell 0.01% JavaScript 0.07% TypeScript 89.48% CSS 0.11% HTML 0.28% Dockerfile 0.12% SCSS 9.93%

hc-tcg's Introduction

HC-TCG

https://www.reddit.com/r/HermitCraft/comments/10wksaw/hctcg_online/

Node.js

Use Node.js 16-18 (19+ is not supported).

If you don't have Node.js yet we recommend using nvm.

How to run the project

  • First, you must install packages using npm ci - use this instead of npm install to avoid unneccesary changes in package-lock.json
  • The client is compiled, so must be built before use with npm run build
  • The server can then be run using npm run start or npm run server
  • Whilst developing, it may be useful so run the client or server such that they reload if you make a change. This can be done by running npm run client:dev and npm run server:dev respectively.

Configuration

You can configure your instance using the config/server-config.json file.

Key Description
port Server port
clientDevPort Port for vite client server
clientPath Path for the client build used
cors Useful when testing on local network or when your server runs on a different domain
world Identifier for your instance when tracking stats
limits Limits for players' decks
logoSubText Animated text to show next to logo
botUrl Url to report game results to
version Version displayed on the client

Formatting & coding style

We run lint/prettier/tsc as part of the PR process. However if you want to avoid back and forth we recommend adding a pre-commit hook that will test this for you locally every time you create a new commit:

npm run husky

We also recommend to run prettier on save in your editor, this is an example configuration using the prettier extension for VSCode:

// .vscode/settings.json
{
	"[json][jsonc]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode",
		"editor.formatOnSave": true
	},
	"[javascript][typescript][typescriptreact]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode",
		"editor.formatOnSave": true
	},
	"[css][scss]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode",
		"editor.formatOnSave": true
	},
	"typescript.tsdk": "node_modules/typescript/lib"
}

hc-tcg's People

Contributors

sense101 avatar martinkadlec0 avatar nikouy avatar benji42 avatar tyrannicodin avatar jmlyman424 avatar ijzm avatar devchimera avatar maescool avatar czompi avatar eyduh avatar andynovo avatar jimmy474 avatar joellejs avatar razboy20 avatar dependabot[bot] avatar

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.