This is a training project to learn Java, Spring and Angular. It was done in group with JuTournet, ManuelVali77 and MyleneCaudron, during courses with the training organization Simplon.
This project is an hospital management application.
General :
- Person lists (patients or users)
- Text filter for person lists
- Login system with roles
Users can have one of three roles : administrator, medical secretary or nurse.
Admin :
- See user's list
- Create new users
Medical secretary :
- See patients lists
- Add new patient
- Edit patient data (name, address, etc.)
- Check patients in/out a medical department, room and bed ; this adds a record to the medical file
Nurse :
- See patients lists
- See a patient's medical file
- Add comments in a patient's medical file
- Java 17
- SpringBoot
- Angular 15
- MySQL
This project isn't hosted online ; if you want to see what it's like, you will have to install and run the app locally.
- JDK 17
- Maven
- Angular CLI version 15.1.2.
- MySQL
Start by cloning the repository :
git clone https://github.com/StormLbn/HospiD-ieu.git
Use a script editor or terminal connect to MySQL, and create a database with name hospidieu
.
In the hospidieuBack
folder :
- Update file
hospidieuBack\src\main\resources\application.properties
with your database username and password. - Build the project and collect dependencies :
mvn clean install
mvn dependency:copy-dependencies
Note : DB tables are created during the build so it could take a little time.
- Run the project :
cd target
java -jar hospidieuBack-0.0.1-SNAPSHOT.jar
DB tables and default users to test the app will be automatically created when building the app. Default users' information appear in the console :
- Admin : [email protected]
- Medical secretary : [email protected]
- Nurse : [email protected]
- Password (for all) : test123
The app also needs hospital beds data, so use a script editor or terminal to run the script db_script.sql
to add them, as well as some patients data.
In the HospidieuFront
folder :
npm install
ng serve
The Angular app now runs on http://localhost:4200/.