Skip to content

Blockchains are immutable, sequential chain of records called Blocks. They can contain transactions, files or any data you like, really. But the important thing is that they’re chained together using hashes. IMPORTANT: This project is not linked in ANY way to Bancolombia, only the archetype is used for its good structuring.

License

Notifications You must be signed in to change notification settings

cristianmarint/blockchain-springboot

Repository files navigation

ROLL THE BLOCK (OR BLOCKCHAIN)

Blockchains are immutable, sequential chain of records called Blocks. They can contain transactions, files or any data you like, really. But the important thing is that they’re chained together using hashes.

Architecture is based on Bancolombia Scaffold but some liberties were taken

Summary 📋

GettingStarted 🚀

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them

  • Java 11
  • IntelliJ is highly recommended

Installing

A step by step series of examples that tell you how to get a development env running

  1. Clone repo
  2. Open with IntelliJ
  3. Run the project
  4. Import the Postman Collection
  5. Run '1 Mine'

And you will get

{
    "data": {
        "content": {
            "message": "New Block Forged",
            "index": 2,
            "transactions": [
                {
                    "sender": "NodeMinerAddress",
                    "recipient": "60bf9a29e94e46fe9364c01d2ce535f7",
                    "amount": 1
                }
            ],
            "proof": 45972,
            "previousHsh": "84e2906ec60603ef54719c27b0c15769f6c6931007474eae8b0e4ff81cf0c33e"
        }
    }
}

Running the tests

Use gradle to run tests

Break down into end to end tests

~~Will be added later~~

Deployment

You can use Heroku to deploy this project, remember to create the required variables in Procfile

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the CC0 1.0 Universal Creative Commons License - see the LICENSE.md file for details

Acknowledgments

  • It's not perfect but the repo is open for improvement

About

Blockchains are immutable, sequential chain of records called Blocks. They can contain transactions, files or any data you like, really. But the important thing is that they’re chained together using hashes. IMPORTANT: This project is not linked in ANY way to Bancolombia, only the archetype is used for its good structuring.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Languages