This work presents an implementation of the MVC (model-view-controller) software architecture, using a car repair agency as the application's domain.
NOTE
The application was primarily aimed to portuguese speakers, so the GUI and the code have a lot of portuguese words and phrases.
-
Clone the Repository
$ git clone https://github.com/alexandreclem/MVCapplication.git
-
Compile - creates the binaries (.class)
- Within the src directory, run:
$ javac -d ../bin ./model/*.java $ javac -cp ../bin -d ../bin ./controller/*.java ./persistence/*.java $ javac -cp ../bin -d ../bin ./view/*.java $ javac -cp ../bin -d ../bin ./main/*.java
- A new directory bin with all compiled files will be created inside the project root directory
- Within the src directory, run:
-
Execute
- Within the src directory, run:
$ java -cp ../bin main.Main
- Within the src directory, run:
-
The data directory:
- This folder stores the application persisted data (serialized objects)
NOTE
All the files are already compiled and ready to execution, moreover, is presented a previously created data.bin for tests. That is, you can test the application just by doing the "Execute" phase from the last section.
The first view is the Menu, in which you can choose:
-
Catalog
- Creates categories and items (products or services) that intends to be used by the agency to fix the cars
-
Clients
- Add or remove clients from the system
-
Employees (Funcionarios)
- Add or remove employees from the system
-
Vehicles
- Register vehicles and add services that must be done on these vehicles
-
Service Orders (Ordens de Servico)
- Creates the service orders that can be used in the vehicles view