{"id":19082925,"url":"https://github.com/floscha/scalatra-blockchain","last_synced_at":"2025-07-12T03:10:16.333Z","repository":{"id":100152160,"uuid":"109123632","full_name":"floscha/scalatra-blockchain","owner":"floscha","description":"Simplified Blockchain implementation in Scala using the Scalatra framework","archived":false,"fork":false,"pushed_at":"2018-02-01T18:38:36.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T06:24:54.324Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/floscha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-01T11:33:40.000Z","updated_at":"2017-11-10T17:16:48.000Z","dependencies_parsed_at":"2023-05-12T14:00:15.527Z","dependency_job_id":null,"html_url":"https://github.com/floscha/scalatra-blockchain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/floscha/scalatra-blockchain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floscha%2Fscalatra-blockchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floscha%2Fscalatra-blockchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floscha%2Fscalatra-blockchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floscha%2Fscalatra-blockchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floscha","download_url":"https://codeload.github.com/floscha/scalatra-blockchain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floscha%2Fscalatra-blockchain/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264929593,"owners_count":23684839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T02:45:03.071Z","updated_at":"2025-07-12T03:10:16.321Z","avatar_url":"https://github.com/floscha.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scalatra Blockchain\n\nThis simple Blockchain implementation is based on Daniel van Flymen's blog post [Building a Blockchain](https://medium.com/p/117428612f46) and its respective [source code](https://github.com/dvf/blockchain).\nUnlike the original Python implementation, this one is based on the [Scala](https://www.scala-lang.org/) language and the [Scalatra](http://scalatra.org/) web micro-framework.\n\n## Build \u0026 Run\n\nWe strongly recommend using [Docker](https://www.docker.com/) containers to run *Scalatra Blockchain*.\nTherefore a Docker daemon (can be downloaded [here](https://www.docker.com/community-edition#/download)) needs to be running on your machine.\n\n### Build Provided Docker Image\n\nThe easiest way to build the Docker image is by using the provided Dockerfile:\n\n```\n$ docker build . -t scalatra-blockchain\n```\n\n\n### Build Docker Image From Source\n\nWhen making changes to the codebase, you can also build the Docker image using sbt:\n\n```\n$ sbt docker:publishLocal\n```\n\n\n### Run Docker Image\n\nOnce the Docker image has been built, it can easily be run on port 8080 like so:\n\n```\n$ docker run -p 8080:8080 scalatra-blockchain\n```\n\n\n## End-to-End Tests\n\nRather than testing the blockchain manually by making HTTP calls using CURL or Postman like in the blog post, end-to-end tests can also be done automated using [this Python script](https://github.com/floscha/blockchain-end2end-test/blob/master/end2end_test.py).\n\nTo run the tests, simply following these steps:\n\n1. Make sure the docker image has been built as described in the previous section.\n\n2. Clone the test script from its repository and navigate to the folder:\n\n```\n$ git clone https://github.com/floscha/blockchain-end2end-test\n$ cd blockchain-end2end-test\n```\n3. Install the required dependencies:\n\n```\n$ pip install -r requirements.txt\n```\n\n4. Run the test script as follows:\n\n```\n$ python end2end_test.py --nodes 10 --tasks clean setup connect sync-test\n```\n\nMore details on how the script works can be found [here](https://github.com/floscha/blockchain-end2end-test/blob/master/README.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloscha%2Fscalatra-blockchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloscha%2Fscalatra-blockchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloscha%2Fscalatra-blockchain/lists"}