Code Monkey home page Code Monkey logo

kotlin-spring-jooq-flyway's Introduction

kotlin-spring-jooq-flyway

CircleCI

MIT License

Sample project with Kotlin, Spring Boot, JOOQ, Flyway, etc ...

Dependencies

  • Java 8
  • Docker
  • Docker Compose

How to run

Develop with local JDK and MySQL on container

Develop

$ docker-compose up -d mysql
$ ./bin/run_locally.sh develop

Unit testing

$ docker-compose up -d mysql
$ ./bin/run_locally.sh test

Build and run JAR

$ docker-compose up -d mysql
$ ./bin/run_locally.sh build
$ ./bin/run_locally.sh jar

Develop with JDK on container and MySQL on container

Develop

$ docker-compose up -d

Build

$ ./bin/build_on_docker.sh

How to call Web API

$ curl http://localhost:8080/health
$ curl http://localhost:8080/tasks
$ curl http://localhost:8080/tasks/1
$ curl http://localhost:8080/tasks -X POST -H "Content-Type: application/json" -d '{"name": "MyTask", "assigneeUserId": 1}'

About the tools used in this repository

Flyway

Migration by Flyway will be executed when Spring Boot is started or when the . /gradlew flywayMigrate command executed.

Even when migrations are executed in parallel, they are locked properly.

See: Can multiple nodes migrate in parallel?

SpringFox

If you start with Profile local, you can get Swagger documentation at the following endpoints.

OWASP Dependency Check

A vulnerability assessment of dependent libraries is performed at build time.

The build is configured to fail if a CVSS 7.0 or higher vulnerability is found.

Tevern

Automated API testing tool.

kotlin-spring-jooq-flyway's People

Contributors

os1ma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jeetpateljsp

kotlin-spring-jooq-flyway's Issues

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.