Coder Social home page Coder Social logo

jonyfs / credit-card-api Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 19.0 415 KB

Sample with TDD, Spring Boot, Embedded MongoDB, HATEOAS and Spring REST Docs

Home Page: https://creditcardapi.herokuapp.com/api

Java 100.00%
java spring-boot spring-rest asciidoctor diagram credit-card mongodb payment continuous-integration continuous-deployment maven

credit-card-api's Introduction

Credit Card API Example

Example with Integration Tests, Spring Boot, Embedded MongoDB, HATEOAS, Spring REST Docs and AsciiDoctor

The Credit Card API uses CodeShip and Heroku for Continuous Delivery.
 
Codeship is a fast and secure hosted Continuous Delivery platform that scales with your needs.

Heroku is a cloud application platform that offers a new way of building and deploying web apps.

The Credit Card API

Model Class Diagram

Model Class Diagram

Api Class Diagram

Api Class Diagram

Api Sequence Diagram - Do Payment

Api Sequence Diagram - Do Payment

Api Sequence Diagram - Get Payment

Api Sequence Diagram - Get Payment

MongoDB Embebbed Config

  • Database: credit-card
  • Collections: payments
  • url: localhost
  • port: 27057

Obs.: I used MongoDB Compass client to access data in MongoDB.

Spring Boot Config

See application.properties

Tools

Spring Boot

SPRING INITIALIZR

Spring REST Docs

MongoDB

embedmongo-spring

de.flapdoodle.embed.mongo

AsciiDoctor

AsciiDoctor file

See credit-card-api.adoc

API Document Sample

See credit-card-api.pdf

Continuous Delivery

Codeship Status for jonyfs/credit-card-api

How test?

Run mvn package spring-boot:run 

How access?

credit-card-api's People

Contributors

jonyfs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.