"The Green Thumb" is a CRUD application written in Java that incentivizes behavior that leads to less CO2 consumption. It was implemented in the Client-Server model, of which both parts can be found in this repository.
With "The Green Thumb", the user:
- gains or loses points depending on the actions they take such as the kind of meal they eat, what kind of produce they buy or by which means of transportation they travel.
- can connect with friends and communicate with them via the chat.
- is incentivized to improve their behavior via the leaderboard as well as the various achievements they can obtain for certain repeated actions such as buy multiple solar panels.
Purpose | Name |
---|---|
Programming language | Java |
Dependency manager | Maven |
Version control system | Git |
Testing frameworks | JUnit, Mockito |
Server framework | SPRING |
Database | MYSQL |
Database interaction | JDBC |
Object–relational mapping | Hibernate |
Client-server communication | REST-API |
To run "The Green Thumb", first a local instance of the server has to be initialized. It is assumed that both a Java JDK and an IDE such as IntelliJ or Eclipse are installed and that the users operating system is Windows.
- Download and install the latest version of MYSQL and of Apache Tomcat.
- Make sure that a MYSQL connection is created using the hostname "localhost" and the port "3306".
- Run the entire startup script in MYSQL.
- Import the server as a Maven project and resolve all dependencies.
- Run the maven lifecycle command "package" with the "Skip Tests" mode toggled on. This should create a new folder called "target" with, among other things, a file called "spring-crm-rest.war".
- Exploded deploy the new "spring-crm-rest.war" file in the Tomcat server i.e. by moving it into the Tomcat Webapp folder. Make sure that the Tomcat server runs on port "8082".
Now, the client can be started.
- Import the client as a Maven project and resolve all dependencies.
- Run the client by executing the main method in the Application class.
This app was developed using the SCRUM methodology together with:
- Ardy Zwanenburg
- Jari van den Broek
- Nathan Ordonez
- Lukas Zimmerhackl
- Nick van Riet
"The Green Thumb" is published under the MIT licence, which can be found in the LICENSE file. For this repository, the terms laid out there shall not apply to any individual that is currently enrolled at a higher education institution as a student. Those individuals shall not interact with any other part of this repository besides this README in any way by, for example cloning it or looking at its source code or have someone else interact with this repository in any way.