Sign inSign up

buttercrab/web-mighty

By buttercrab

Updated about 5 years ago

Mighty Card Game in Online

Image
0

10K+

buttercrab/web-mighty repository overview

Mighty Card Game

Github Action Github Action Codecov Codacy MIT License

Run server in docker

Start your postgresql server at 0.0.0.0:5432. Then run:

docker run -e HOST="0.0.0.0" 
           -e POSTGRES__HOST="host.docker.internal" 
           -e POSTGRES__USER="<postgres username>"
           -e POSTGRES__PASSWORD="<postgres password>"
           -p 8080:80 -d buttercrab/web-mighty

Go to localhost:8080 and have fun!

Manually start your server

  1. install rust
  2. install wasm-pack
  3. install npm
  4. install and start your postgres server
  5. make server.toml based from server.sample.toml
  6. run npm i && npm run build
  7. run ./build/bin/server

For developing

  1. do 1 ~ 5 from above
  2. run npm i && npm run build-watch
  3. run ./build/bin/server
  4. run npx webpack -w in other terminal

For every change, webpack will rebuild your js code and server will catch changes.

Tag summary

Content type

Image

Digest

Size

38.3 MB

Last updated

about 5 years ago

docker pull buttercrab/web-mighty