A mock housing application I created to aid testing of a system I worked on. Also gave me opportunity to play with Spring Boot some more and Angular.
The application I worked on was a CRM application where contacts may or may not be held externally. To aid testing whereby contacts are held externally, I created a stub application which allows me to create tenancies, tennants and addresses.
In order to run the application set the connection details in the application.yml file. The maven package will produce the executeable jar.
Dockerfile provided to create docker image, steps to run....
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=y0urP4ss' -p 1433:1433 -d --name netcall-housing-db microsoft/mssql-server-linux
docker exec -it mock-housing-db /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P y0urP4ss
CREATE DATABASE [mock-housing]
GO
USE [mock-housing]
GO
CREATE LOGIN mockappuser WITH PASSWORD = 'y0urP4ss';
GO
CREATE USER mockappuser FOR LOGIN mockappuser;
GO
GRANT ALTER To mockappuser
GO
GRANT CONTROL To mockappuser;
GO
EXIT
docker commit -m "Base SQL Server database for mock housing app" -a "[email protected]" mock-housing-db netcall/mock-housing-app-db
docker login
docker push netcall/mock-housing-app-db
docker pull ellisd5/mock-housing-app:1.0
docker run -d --link mock-housing-db:netcall-housing-db -p 8088:8088 --name mock-housing-app ellisd5/mock-housing-app:1.0