Coder Social home page Coder Social logo

tms's Introduction

Tasks Management System (TMS)

Description

TMS is a simple REST service project that serves APIs for managing your own activity tasks.

Please find the official website for detailed information.

About implementation

TMS uses Dropwizard framework to serve the APIs. The default database implementation is H2 and the database is located into target/db.

To see an example of usages for MySql please point to the test cases.

Testing

The code base contains a set of unit and integration tests that cover at least 85% of the code. During the build the code coverage is checked by JaCoCo. the minimum allowed coverage is 85%.
The report is published into target/site

Open API

TMS exposes a OpenAPI http://localhost:8080/api/swagger. the page describes the REST APIs. To get a JSON representation use http://localhost:8080/api/swagger.json

How to start the TMS application

  1. Run mvn clean install to build your application
  2. Init the database java -jar target/task-management-system-1.0-SNAPSHOT.jar db migrate config.yml
  3. Start application with java -jar target/task-management-system-1.0-SNAPSHOT.jar server config.yml
  4. To check that your application is running enter url http://localhost:8080/api/

Dockerize your application

After you have built the application run:

docker build -t marcosperanza79/tms:latest -f target/docker/Dockerfile .

Run production with docker/swarm

docker-compose -f src/main/docker/conf/docker-stack.yml up

or

docker stack deploy -c src/main/docker/conf/docker-stack.yml tms

Deploy on Oracle Cloud OKE (k8b)

In the production environment create a OKE cluster

kubectl apply -f https://raw.githubusercontent.com/marcosperanza/tms/master/src/main/k8b/k8b-tms-prod.deployment.yml
kubectl expose deployment tms --port=80 --type=LoadBalancer

inspect the loadbalancer

kubectl get service tms

tms's People

Contributors

marcosperanza avatar eosearch-team 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.