Source code for a tutorial on Medium I published.
Run shards
to get the dependencies
- Run
crystal src/blockchain.cr
- Go to
http://localhost:3000
in your browser.
- Run
docker build -t image_name_of_your_choosing:latest .
- Run
docker container run -d -p 3000:3000 image_name_of_your_choosing
- Go to
http://localhost:3000
in your browser.
Clean up:
- Run
docker container ls
- Copy the CONTAINER ID from your running process
- Run
docker container rm -f <CONTAINER ID>
- Run
docker image rm image_name_of_your_choosing
- GET full blockchain
- POST new blocks to chain
- Fork it ( https://github.com/bradford-hamilton/crystal-blockchain/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- Bradford-Hamilton Bradford Lamson-Scribner - creator, maintainer