Git Product home page Git Product logo

demining / bitcoin-spring-boot-starter-google-colab Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 12.0 14.39 MB

Write enterprise Bitcoin applications with Spring Boot. Starter projects with multiple Bitcoin related modules that you can include in your application Google Colab

License: Apache License 2.0

Java 97.59% HTML 0.78% CSS 0.92% JavaScript 0.52% Shell 0.08% Python 0.10%
bitcoin bitcoin-wallet bitcoin-api bitcoin-core bitcoin-payment bitcoin-transaction google-colab google-colaboratory google-colab-notebook google-colab-tutorial

bitcoin-spring-boot-starter-google-colab's Introduction

Build GitHub Release Maven Central License

Logo


Run bitcoin-spring-boot-starter-Google-Colab

https://colab.research.google.com/drive/1OShIMVcFZ_khsUIBOIV1lzrqAGo1gfm_?usp=sharing


Write enterprise Bitcoin applications with Spring Boot.

Spring boot starter projects with convenient dependency descriptors for multiple Bitcoin related modules that you can include in your application. Strong focus on integration and regression testing your own application or module. Included are features for representing, transporting, and performing comprehensive calculations and tests with Bitcoin in financial applications and computations.

Note: Most code is still experimental - do not use in production. This project is under active development. Pull requests and issues are welcome. Look at the changelog to track notable changes. Also, developing this project is fun.

Table of Contents

Install

Download from Maven Central.

Gradle

implementation "io.github.theborakompanioni:spring-tor-starter:${bitcoinSpringBootStarterVersion}"

Maven

<dependency>
    <groupId>io.github.theborakompanioni</groupId>
    <artifactId>spring-tor-starter</artifactId>
    <version>${bitcoinSpringBootStarter.version}</version>
</dependency>

The example above imports module spring-tor-starter - you can import any module by its name.

Modules

This project contains various modules that can be integrated into your project depending on your requirements.

You can find a small selection in the following table. But there is much more to discover.

Module Description
bitcoin-jsonrpc-client Connect to Bitcoin Core via ConsensusJ Bitcoin Core JSON-RPC API client.
bitcoin-zeromq-client Connect to Bitcoin Core via ZeroMq API client.
bitcoin-regtest Integration and regression testing your own application.
lnd-grpc-client Connect to lnd node via LightningJ gRPC API client.
xchange-jsr354 Exchange rates from popular Bitcoin exchanges for your application.
spring-xchange Automatically create and configure XChange beans.
spring-tor Automatically expose your application as Tor Hidden Service.
spring-lnurl Spring Security configurations for authentication with lnurl-auth.

See modules.md for general information about specific modules.

Examples

Besides, that most starter modules also have their own example applications, there are also stand-alone example applications showing basic usage of the functionality provided by these modules.

Example apps can be started with a single command, e.g.:

./gradlew -p incubator/spring-lnurl/spring-lnurl-auth-example-application bootRun

Development

Requirements

  • java >=11
  • docker

A Bitcoin Core Testcontainer running in regtest mode is started for most examples. Having access to a Bitcoin Core node running on mainnet is quite useful if you want to try everything. Optional: A node should publish rawtx and rawblock messages via zmq for some features to work.

Build

./gradlew build -x test

Test

./gradlew test integrationTest

Tests in example application modules or modules that start a lot of docker containers (modules named "-example-application" or "spring-testcontainer-") are excluded from the default test phase and must be manually enabled if you want to run them. To run all tests pass arguments -PexampleTest and -PtestcontainerTest:

./gradlew test integrationTest -PtestcontainerTest -PexampleTest

Be aware this might take several minutes to complete (>= 10 minutes).

Dependency Verification

Gradle is used for checksum and signature verification of dependencies.

# write metadata for dependency verification
./gradlew --write-verification-metadata pgp,sha256 --export-keys

See Gradle Userguide: Verifying dependencies for more information.

Checkstyle

Checkstyle with adapted google_checks is used for checking Java source code for adherence to a Code Standard.

# check for code standard violations with checkstyle
./gradlew checkstyleMain

SpotBugs

SpotBugs is used for static code analysis.

# invoke static code analysis with spotbugs
./gradlew spotbugsMain

Contributing

All contributions and ideas are always welcome. For any question, bug or feature request, please create an issue. Before you start, please read the contributing guidelines.

Resources



Donation Address
BTC 1Lw2kh9WzCActXSGHxyypGLkqQZfxDpw8v
ETH 0xaBd66CF90898517573f19184b3297d651f7b90bf

bitcoin-spring-boot-starter-google-colab's People

Contributors

danielweigl avatar demining avatar johnzweng avatar theborakompanioni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

5l1v3r1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.