Skip to content

TableTopLtd/tt-customers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TableTop Customers microservice

Build Status

Prerequisites

docker run -d --name tt-customers-db -e POSTGRES_USER=dbuser -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=customer -p 5435:5432 postgres:latest

When developing

Run

mvn clean package

from repo root directory.

To run application local jar, run:

java -jar api/target/*.jar

Microservice finds database through ip

To test the service you should go to

http://localhost:8083/v1/customers

To see a list of all customers.

http://localhost:8083/v1/customers/1

To see the first one, etc.

Build docker image

docker build . -t tt-customers:X

[Optional] Define your own X

Run application in Docker

docker run -p 8081:8081 tt-customers:X

About

TableTop customers microservice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages