GithubHelp home page GithubHelp logo

code-by-sia / toys-product-service Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 92 KB

Simple Rest API service (Query Service) with cashing.

Dockerfile 0.52% Java 99.27% Shell 0.21%
spring-boot maven rest-api docker

toys-product-service's Introduction

Toy Service Build Status

This service can be used for serving a list of products via a rest call.

Endpoints

Method Endpoint Descriptio
GET http://localhost:8080/product list of the products
GET http://localhost:8080/ Swagger UI
GET http://localhost:8080/api-docs Open API specification
GET http://localhost:8080/actuator/health health endpoint
GET http://localhost:8080/actuator/info service information
GET http://localhost:8080/actuator/metrics service metrics

How To

Quick start

for having a quick start, you can easily use the startup.sh script, it uses the docker; therefore, you should have docker installed.

$ ./startup.sh

Manual run (Developing)

if you want to run it manually without taking advantage of docker, you can run a redis-server locally then build and run via maven as the following:

$ redis-server &
$ mvn clean install
$ java -jar target/toys-0.0.1.jar

you can also use the MavenWrapper and the springboot plug in for running it:

$ redis-server &
$ ./mvnw spring-boot:run  

Run tests

for running tests you can use mvn:

$ mvn clean verify

or (via maven wrapper)

$ ./mvnw clean verify

toys-product-service's People

Contributors

code-by-sia avatar samuellme avatar

Watchers

 avatar  avatar

Forkers

samuellme

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.