This project was created for my Thesis Project and Project Laboratory course at BME (my university). I am a scout at a Hungarian scout team, where I am also a leader. Every scout team usually has a place where their events can take palce (in Hungarian this place's name is cserkészotthon and in free translation: scout home). Because this place is not our property, we have to clean it, log when someone opened or closed it and something is out of stock then indicate it to someone.
We used to do these things on paper that is why I started to create this app. The backend stores the data on a MySQL database and it runs on Spring Boot framework. The frontend uses the React JS libraries but currently not the cleanest code because I started to learn JavaScript, HTML, CSS and React within this project.
The project now can log the closes and openings, the cleanings and the maintenances and it also has authentication and authorization (who has admin rights can delete entities and has access to the admin page). Currently who registers as an Őrsvezető (scout leader) in the register page has an admin right.
Open command line, then:
install_backend.bat
install_frontend.bat
Then:
start_backend.bat
start_frontend.bat
The application uses a MySQL database, that you have to set up. You can use either MySQL Workbench or any other client (e.g. JetBrains DataGrip) you can edit the database transactions:
- The root username and password has to be: root (or you can change these in the src/main/java/resources/application.properties)
- Create the schema wich has to be: csotthonapp
- Go to the Installing and running the backend part
- After
mvn install
you have todrop
the schema andcreate
it again or justdrop
all the tables one by one
mvn clean install
Then
mvn spring-boot:run
Go to the src/main/webapp folder, then:
npm install
Then
npm start
The text you have to use is inside the square bracket [].
Username | Password | Role(s) |
---|---|---|
[] | [password1] | ADMIN, USER |
[] | [password2] | ADMIN |
Stella Tóth-Baranyi