Skip to content
/ hsw Public

REST Backend service that handles user shares and activities

License

Notifications You must be signed in to change notification settings

egcodes/hsw

Repository files navigation

HSW BE Service

Site: https://www.hackerupdates.com

Used libraries

  • spring-boot-starter-web
  • spring-boot-starter-data-jpa
  • spring-boot-starter-validation
  • spring-boot-starter-security
  • spring-boot-starter-cache
  • spring-boot-starter-data-redis
  • spring-boot-starter-test
  • springdoc-openapi
  • mapstruct
  • h2
  • Lombok
  • rest-assured
  • shedlock
  • postgresql

Follow the below steps to containerize the application

# Build the project
$ mvn clean package

# Build Docker image
$ docker build --tag=hsw:latest -f Dockerfile-app .
$ docker build --tag=nginx-hsw:latest -f Dockerfile-site .

# Run App, DB, HttpServer on Docker
$ docker-compose up -d

or

# Build the project
$ mvn clean package

# Build Docker image
$ docker build --tag=hsw:latest -f Dockerfile-app .
$ docker build --tag=nginx-hsw:latest -f Dockerfile-site .

# Run App, DB, HttpServer on Kubernetes
$ kubectl apply -f kube-postgres-pvc.yaml
$ kubectl apply -f kube-postgres.yaml
$ kubectl apply -f kube-redis-pvc.yaml
$ kubectl apply -f kube-redis.yaml
$ kubectl apply -f kube-hsw.yaml
$ kubectl apply -f kube-nginx.yaml

About

REST Backend service that handles user shares and activities

Resources

License

Stars

Watchers

Forks

Languages