There are 2 already compiled docker images. The main difference is the presence of a predefined DB with some users and usefull data.
- Have a look at this file SQLData
docker pull sordinho/ai-project-db
for the full db versiondocker pull sordinho/ai-project
for an empty db version
docker run -p 8080:8080 -d --name ai-project sordinho/ai-project-db
For building the image directly from sources we need:
- Build the frontend application:
ng build
inside the frontend repository.
- Copy the built frontend files inside the
/resources/static
folder of the backend - Build the backend to produce a jar file
maven install
- Run docker build
docker build -t imageName .
Documentation: http://localhost:8080/ai-backend-api-docs.html