Giter Site home page Giter Site logo

ppirog / lotto Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 437 KB

excercise to practise commercial technologies such as spring-boot, junit, mockito, mongodb, wiremock, docker, testcontainters, redis

Java 99.88% JavaScript 0.12%
docker java junit lombok maven mockito mongodb redis spring spring-boot spring-security testcontainers wiremock

lotto's Introduction

Java Spring mongoDB redis Docker JUnit mocikto Testcontainers HTTP REST IntelliJ Auth0 Maven Lombok

This Application simulates lotto game. User gives input numbers and receive a ticket. Then every Saturday at 12:00 application generates winning numbers and at 12:05 user is able to check result.

Generating numbers is done by app using scheduler. To use application user has to register, login and fetch JWT token

To give input numbers use endpoint:

  • POST /inputNumbers

To check result use endpoint:

  • GET /results/{id}

All functionality are unit and integration tested.

Core

  • Java
  • Spring
  • MongoDb
  • Redis
  • Spring Security
  • Scheduler
  • Docker
  • JWT

Testing:

  • JUnit
  • AssertJ
  • Mockito
  • Testcontainers
  • Wiremock
  • MockMvc

Architecture

image

Postman

image image image image image image

To start app go to go to file docker-compose.yml first and launch it

lotto's People

Contributors

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