Giter VIP home page Giter VIP logo

idempotency's Introduction

idempotency

A java library for idempotency

Tests

Building

  1. Make a copy of bazelrc.tmpl into .bazelrc, and make sure it is appropriate for your machine.
  2. run ./bazel build //... to ensure everything is building.
  3. run ./bazel test //... to run all tests.
  4. Import into intellij using the bazel plugin.

Adding dependencies

Dependencies are pinned in the maven-deps_install.json file, which is managed by a set of blaze commands. Don't edit the file directly!

To add a dependency on a library hosted on maven, add it to the maven-deps target at the bottom of WORKSPACE.bazel, and then run the following command:

bazel run @unpinned_maven-deps//:pin

You should check in the updated maven-deps_install.json file.

For more information on pinning dependencies, see the documentation.

Demo Application

Running

To run the demo application, use the following command:

./bazel run //src/main/java/com/bablooka/idempotency/application:application

Database

Writing migrations

Migrations need to be put in the resources/db/sql directory, and should conform to the pattern

Vxxxx__name_of_migration.sql

Where xxxx is a monotonically increasing number starting at 0001.

After you write a migration, import the project into intellij using the bazel plugin and your code should auto generate jOOQ classes to match the new or modified migrations.

Migrating the dev database

Use ./bazel run //scripts:migrate_db to migrate the dev database. The dev database location is provided by the DEVELOPMENT_DB_DIRECTORY and DEVELOPMENT_DB_NAME parameters set in .bazelrc

idempotency's People

Contributors

weksler avatar

Watchers

 avatar

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.