Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/prod3v3loper/java-desktop-website-app

🖥️ Desktop Application with Login and Dashboard
https://github.com/prod3v3loper/java-desktop-website-app

boot dashboard desktop-application gui java jdbc kotlin login maven mysql netbeans netbeans-project spring spring-boot swing website

Last synced: about 1 month ago
JSON representation

🖥️ Desktop Application with Login and Dashboard

Awesome Lists containing this project

README

        

# JAVA DESKTOP APPLICATION

![APP](https://raw.githubusercontent.com/prod3v3loper/java-desktop-website-app/main/src/main/resources/images/p3-app.PNG?token=GHSAT0AAAAAACSRTP633NYHX44TT5I32DZ2ZSMJNPQ "Application")

A simple application that allows you to log in via the database and get to the dashboard. The data can be accessed from your website database but also from elsewhere.

Download it and open it with NetBeans, then just click Run and it will open. You can develop it further and add whatever your application needs.

```
LoginApp/
├── nbproject/
│ ├── private/
│ ├── ...
├── src/
│ ├── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── prod3v3loper/
│ │ │ └── loginapp/
│ │ │ ├── LoginForm.java
│ │ │ ├── DashboardFrame.java
│ │ │ └── DatabaseConnection.java
│ │ ├── resources/
│ │ ├── images/
│ │ │ └── p3.png
│ │ └── application.properties
├── target/
│ ├── ...
├── .gitignore
├── pom.xml
└── README.md
```

## DATABASE

Change your database, if you already have a local environment (developer environment) then you can directly use localhost and work and develop with it.

```java
private static final String URL = "jdbc:mysql://localhost:6606/databasename";
private static final String USER = "root";
private static final String PASSWORD = "test";
```

# JAR to EXE

Use https://launch4j.sourceforge.net/ to create exe file.

# Alternative

This project was created with https://netbeans.apache.org/.

But you can use https://start.spring.io/ to create your startup project if you want.

# Attention

This one should not use in a real environment but unfortunately there is also something in real environments.

# UPDATE

Migrating **Spring Boot** and **Kotlin** example.

`pom.xml`

```

4.0.0

com.prod3v3loper
LoginApp
1.0-SNAPSHOT
jar


11
1.5.21
2.5.4




org.springframework.boot
spring-boot-starter-web


org.springframework.boot
spring-boot-starter-data-jpa


mysql
mysql-connector-java
runtime



org.jetbrains.kotlin
kotlin-stdlib


org.jetbrains.kotlin
kotlin-reflect


com.fasterxml.jackson.module
jackson-module-kotlin



org.springframework.boot
spring-boot-starter-test
test




org.springframework.boot
spring-boot-maven-plugin


org.jetbrains.kotlin
kotlin-maven-plugin
${kotlin.version}


compile

compile



test-compile

test-compile





```

`src/main/kotlin/Application.kt`

```java
package com.prod3v3loper.loginapp

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication

@SpringBootApplication
class Application

fun main(args: Array) {
runApplication(*args)
}
```

`src/main/resources/application.properties`

```java
spring.datasource.url=jdbc:mysql://localhost:6606/databasename
spring.datasource.username=root
spring.datasource.password=password
spring.jpa.hibernate.ddl-auto=update
```

`src/main/kotlin/com/prod3v3loper/loginapp/HelloController.kt`

```java
package com.prod3v3loper.loginapp

import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController

@RestController
class HelloController {

@GetMapping("/")
fun hello(): String {
return "Hello, Spring Boot with Kotlin!"
}
}
```

# ISSUE

Please use the issue tab to request a:

* Bug
* Feature

Choose template and report a bug or feature you want [issues](https://github.com/prod3v3loper/java-desktop-website-app/issues).

# CONTRIBUTE

Please read the [contributing](https://github.com/prod3v3loper/java-desktop-website-app/blob/main/.github/CONTRIBUTING.md) to contribute.

# VULNERABILITY

Please use the Security section for privately reporting a [vulnerability](https://github.com/prod3v3loper/java-desktop-website-app/blob/main/.github/SECURITY.md).

# Authors

**[prod3v3loper](https://www.prod3v3loper.com)** - _All works_

# License

[MIT](https://github.com/prod3v3loper/java-desktop-website-app/blob/main/LICENSE)