Skip to content

red1108/web-mighty

 
 

Repository files navigation

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>" \
           -e POSTGRES__DBNAME="<database name>" \
           -e MAIL__FROM="<address to send email>" \
           -e MAIL__USERNAME="<smtp username>" \
           -e MAIL__PASSWORD="<smtp password>" \
           -e MAIL__HOST="<smtp server host>" \
           -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.

About

Mighty Card Game in Online (Developing)

Resources

License

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Rust 79.7%
  • Handlebars 8.7%
  • JavaScript 8.0%
  • SCSS 3.1%
  • Dockerfile 0.5%