This is a simple Angular / Java-Spring application designed to store employee data.
All employee data is stored in a mySQL database which is handled using Hibernate and JPA.
The UI primarily was built with Bootstrap and the frontend was built using Angular. The Angular code can be found in src/web
.
You will need the following installed:
- A mySQL database
- JDK 11+ (built and tested with JDK 14)
- A Java IDE
- Node / Node Package Manager
- Node / Node Package Manager
- Docker
This method requires a local running MySQL server, JDK installed and an IDE.
- Change the
application.properties
file insrc/main/resources/
to match your mySQL database details. - Start up the API by running
EmployeeRegistry.java
. cd
into thesrc/web
directory via Terminal and runnpm install
and thennpm start
.- Visit
localhost:4200
via your browser.
This way may be a bit more simpler but it requires Docker to run the API and the database. This method does not require JDK, an IDE or mySQL running locally but it does require Docker to be installed and properly configured.
cd
into the root project directory.- Run
docker-compose up
.
This will spin up the API and the database and connect the two together. Then you can follow step 3 from method 1.