Skip to content

jzeratul/mykid

Repository files navigation

This is a reactjs based project with a spring boot backend running with openapi 3.0 and java 16.

prerequisites

$> nvm list
v10.14.2
$> mvn -v
Apache Maven 3.5.2
$> java -version
openjdk version "16" 2021-03-16
$> docker -v
Docker version 20.10.5
$> docker-compose -v
docker-compose version 1.28.5

build

$> cd react-client
$> npm install
$> npm run start
$> cd spring-boot-server
$> mvn clean install

Go to root repository folder

$> docker build . -t mykid-service:0.0.1

$> docker images
REPOSITORY        TAG                      IMAGE ID       CREATED         SIZE
mykid-service     0.0.1                    064000d92bae   4 seconds ago   534MB

By default we use the react-client/build folder for the nginx static files. One must build the FE before using this setup.

  1. Use docker-compose -f docker-compose-react-dev.yml up for dockerized nginx, mysql, mykid-service
  2. Use docker-compose -f docker-compose-server-dev.yml up for dockerized nginx, mysql and the web resources served from nginx
  3. Use docker-compose -f docker-compose-dev.yml up for dockerized nginx, mysql -> useful running mykid-service and FE in debug
  4. Use docker-compose up for dockerized nginx, mysql, mykid-service and the web resources served from nginx
$> docker-compose up

playground with hexagonal architecture

deployment components

thanks to

Using the AdminLte template: https://github.com/ColorlibHQ/AdminLTE

app screenshots

license

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages