This is a very simple frontend for Timetrack legacy system. Project is built on Jee7 using CDI, EJB and JAXRS.
- jdk 1.8_x
- maven > 3.2.0
- docker
- cd to the project folder.
- run the maven build
mvn clean install docker:build
This should resutl in an error-free build and a new docker image should be created in your local repo under name yntelectual/timetrack-frontend
The whole build is managed via maven, including the docker build.
docker run -d -p 9080:8080 --env LEGACY_SYSTEM_URL=http://172.17.0.2:8080 yntelectual/timetrack-frontend
- Navigate to
http://localhost:9080/timetrack-frontend/
(based on your port mapping)
You should expose the container port 8080
on some host port and you need to pass in the URL of the legacy system via env param LEGACY_SYSTEM_URL
.
Note that the URL needs to be accessible from the newly created container(until the linking is done via docker network or compose).
If you would like to run the whole setup including the legacy container on a single host, use the provided docker compose setup.
Compose exposes the frontend on port 8080 of the host machine.
- build the project using
mvn clean install docker:build
- start the project using
docker-compose up
- navigate to
http://localhost:8080/timetrack-frontend
container linking via compose or docker network (as docker link is deprecated)- validation
- testcases
- added docker compose build
- fixed handling of empty string/null for email in time entry list
- improved paging in list view
- improved navigation