Skip to content

A little web based calcutor for running a "guess the next block nonce" game

License

Notifications You must be signed in to change notification settings

notmandatory/nonce_guess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nonce Guess

Local Testing

  1. Start the wasm web client builder in watch mode

    cd ng_web
    trunk watch
  2. Start the api server, it will also serve the latest web client

    RUST_LOG=debug cargo run --bin ng_server

By default the data is stored in SQLite memory database.

Create Release Build

  1. Build the web client artifacts

    cd ng_web
    trunk build --release
  2. Build the api server binary, this will include the web artifacts

    cargo build --bin ng_server --release

To run the resulting self contained binary use RUST_LOG=debug target/release/ng_server.

In test or release mode the web client can be found at: http://127.0.0.1:8081/

Build Docker Container

  1. docker build -t nonce_guess .
  2. docker run -d --rm -it -p 8081:8081 -v nonce_vol:/data --name nonce_guess_app nonce_guess
  3. Visit http://127.0.0.1:8081/ in a browser

Note: above steps also work with podman instead of docker.

About

A little web based calcutor for running a "guess the next block nonce" game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published