Bannerets / hexfork

Home Page:https://playhex.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hex

Play Hex online.

Currently hosted here: https://playhex.org/

Game screenshot

Install

Requires:

  • node >= 18.18.2
  • yarn

Create and .env file with at least your database access. Example:

DATABASE_URL="mysql://root:root@localhost:3306/hex"

Then run these commands:

# Install dependencies
yarn install

# Generate prisma classes
yarn prisma generate

# Create database schema
yarn prisma db push

# Start application
yarn serve

Wait javascript to be bundled, then the application is available at:

http://localhost:3000/

Test

# Unit tests (Mocha)
yarn test

# e2e tests (Cypress)
yarn test:e2e

# Open Cypress browser
yarn cypress open

And see manual tests to check also.

Optimize js size

# See which dependencies take more size
yarn analyse-size

Compare two json files with: https://happy-water-0887b0b1e.azurestaticapps.net.

License

This library is under AGPL-3.0 license.

About

https://playhex.org

License:GNU Affero General Public License v3.0


Languages

Language:TypeScript 71.4%Language:Vue 27.4%Language:JavaScript 0.6%Language:EJS 0.4%Language:Stylus 0.1%