ninrod / kotlin-springboot2

dockerized kotlin/springboot2 rest api server talking to a postgresql container with angular 7 as a frontend featuring nginx as a reverse proxy
GNU General Public License v3.0
4 stars 0 forks source link
angular api container docker junit kotlin mockito nginx rest spring-boot

The main idea is to assemble a full working stack using kotlin/springboot2 as a rest api server talking to a postgresql db using the latest and greatest comming from the java framework land. We'll use angular7 for the frontend served by nginx, our reverse proxy of choice.

** stack

| domain | tech | |---------------+-----------------------------------------------------------------| | reverse proxy | dockerized nginx | | frontend | angular7 | | backend | dockerized kotlin uberjar with springboot2 running on openjdk-8 | | db | dockerized postgresql | | tests | junit5 and mockito | | logging | logback |

** building

+BEGIN_SRC shell

if you don't have a running postgresql container, spin up one:

$ make db

first, build the backend

$ cd backend && gradle build

now build the frontend

$ cd frontend && yarn && yarn build

+END_SRC

** running

+BEGIN_SRC shell

$ make

then open your brower on http://localhost:4200

+END_SRC

[[https://www.gnu.org/licenses/gpl-3.0.en.html][GNU General Public License v3]]

Copyright (c) 2018 Filipe Silva (ninrod)