An open API service indexing awesome lists of open source software.

https://github.com/christiangracia/marketfeels.com-java-api

This repo contains a Dockerized Java Spring Boot API that auths with JWT, uses PostgreSQl, and is run in a pod with Kubernetes for marketfeels.com. Hosted on Google Cloud GKE
https://github.com/christiangracia/marketfeels.com-java-api

api docker java jwt kubernetes spring-boot

Last synced: 3 months ago
JSON representation

This repo contains a Dockerized Java Spring Boot API that auths with JWT, uses PostgreSQl, and is run in a pod with Kubernetes for marketfeels.com. Hosted on Google Cloud GKE

Awesome Lists containing this project

README

          

# stock-site-back-end-k8
This repo contains a Dockerized Java Spring Boot API back-end that is part of a many pods in a Kubernetes cluster

## Installation

build jar

`mvnw package && java -jar target/cg-stock-site-0.0.1-SNAPSHOT.jar`

build docker image

`docker build -t stock-site-back-end .`

run docker container

`docker container run --publish 8080:8080 --detach stock-site-back-end`

## Google Cloud Installation

clone this repo in google cloud shell

cd into cloned repo

in google cloud shell type:

`./mvnw -DskipTests package`

`mvn clean package`


**sending to google cloud container registry**

build

`docker build -t java-api .`

tag

`docker tag java-api us.gcr.io/marketfeels/java-api:latest`

push

`docker push us.gcr.io/marketfeels/java-api`