Code Monkey home page Code Monkey logo

job-assignment-2's Introduction

Just a Job Assignment

How to start/stop external dependencies (MongoDB)
  • (For start) Execute the following: docker-compose up

  • (For stop) Execute the following: docker-compose down

How to run unit tests
  • Execute: mvn clean test
How to run integration tests (we need to start external dependencies - see above)
  • Execute: mvn clean verify
How to run unit and integration test coverage via JaCoCo
  • Execute: mvn clean package
  • Go to: target/site/jacoco/index.html
How to build docker image
  • First option is via command: mvn install with the help of com.spotify:dockerfile-maven-plugin

  • Second option is:

    • Execute: docker build -t job-chriniko/job-chriniko-assignment .
How to run service
  • First option is:

    • Execute: java -jar target/job-chriniko-assignment-1.0.jar
  • Second option is:

    • Execute: docker run job-chriniko/job-chriniko-assignment:latest
  • Third option is:

    • Execute: mvn spring-boot:run
How to manual test:
  • In order to see functionality hit the following url with GET operation

    • localhost:8080/job-assignment/text?p_start=1&p_end=10&w_count_min=1&w_count_max=20
  • In order to see history hiw the following url with GET operation

    • localhost:8080/job-assignment/history

job-assignment-2's People

Contributors

chriniko13 avatar

Watchers

 avatar  avatar

Forkers

kishan2307

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.