https://github.com/woflydev/autolinkpro
Swing UI application with a FlatLaf frontend for car rental management in Java.
https://github.com/woflydev/autolinkpro
Last synced: 3 months ago
JSON representation
Swing UI application with a FlatLaf frontend for car rental management in Java.
- Host: GitHub
- URL: https://github.com/woflydev/autolinkpro
- Owner: woflydev
- License: gpl-3.0
- Created: 2024-07-19T09:36:33.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-08T22:33:37.000Z (10 months ago)
- Last Synced: 2025-01-08T18:53:04.428Z (5 months ago)
- Language: Java
- Homepage: https://woflydev.com
- Size: 314 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AutoLink Pro
A _slightly_ cancerous, FlatLaf-based Swing application for car rental management written in Java. Stores data using the `JSON` format through an adapted version of Google's `gson` library.

## Building
This project uses both `Maven` and local libraries (stored in `src/main/resources/lib/`). Ensure you have `Maven` installed, either externally or through an IDE such as `IntelliJ IDEA`.
> [!CAUTION]
> You will have to install (link) the external `.jar` into your local repository by running the command below in a `Maven` environment.If you are using `IntelliJ`, double tap the `ctrl` key and run the following command.
```bash
mvn install:install-file
-Dfile=src/main/resources/lib/swing-datetime-picker.jar
-DgroupId=raven.datetime
-DartifactId=swing-datetime-picker
-Dversion=1.3.0
-Dpackaging=jar
```Open project, reload `Maven`, Generate Sources & Update Folders, then execute:
```bash
mvn clean compile assembly:single
```This will create a executable `.jar` file in the `target/` directory.
## Usage
`AutoLinkPro` will automatically detect a first boot if no existing data is found. In the case no data is found, it will automatically create a `data/` folder in the directory where it was run.
> [!NOTE]
> The default login (with superuser permissions) is
>
> **user:**`[email protected]`
>
> **password:** `changeme`## Restoring Corrupt Instances
`AutoLinkPro` will attempt to recover any usable data if it can detect an existing `data` directory. However, note that you will not be able to log in unless an `owner.json` file is defined in the `data/users/` directory.
Data should not corrupt under normal operation. However, if manual fixing is required, the file hierarchy is listed below for reference.
```
data/
├── system/
│ ├── bookings.json
│ └── cars.json
└── users/
├── owner.json
├── customers.json
└── staff.json
```> [!TIP]
> `AutoLinkPro` automatically scans for file integrity on every startup. If modifications to the file system are detected, it will automatically regenerate directories.
>
> As such, if any issues arise, it may be beneficial to simply move old data into a temporary directory and allow the program to regenerate the file heirarchy.## Screenshots
