This project is a simple coffee shop management and ordering system.
- Login to the account. if you don't have an account yet, you can click on
Registerto register the account and then you can login. - Click on the drink that you like and then choose size and quantity.
- After choose all drinks that you want to buy click on
Confirm orderto finish your order. - After finish your order you click on
Log outto log out your account from application.
- If it is the first time that you login, you will be asked to setup a first admin account.
- From there, you can view and complete orders as they come.
- To complete an order, select the order that you want to complete from the left table, then click on the
Complete the orderbutton. - Don't forget to press
refresh, we don't have an automatic refresh system yet. - You can also press the
Add new Adminbutton to add a new admin account for a new administrator. - Press the
Log outbutton to log out.
In case that you would like to build the project yourself, you can use the following commands to build the two programs.
Clone the main branch for the stable, but slower updates, or the development branch for newer and faster, but with possibly incomplete features, may crash, and not guarenteed to work.
First, find the following import statement in the file src/main/java/com/main/SuperMain.java.
import com.UserAs??.Main;When you want to build the client program (client.jar), you change the import statement into
import com.UserAsClient.Main;else, if you want to build the admin program (admin.jar), you change the import statement into
import com.UserAsAdmin.Main;After changing the import statement, run this statements in the root directory of the project.
mvn clean packageFrom there, you should see the file target/coffee-management-${version}.jar.
Rename the file appropriately, and copy it to the directory that you would like it to be run.
Note: Due to the way that it currently works as of v1.1.0, the admin.jar and the client.jar must be in the same directory to be able to run correctly.