Setup of springboot

This commit is contained in:
lobo committed 2026-03-31 18:57:06 +02:00
1 parent a7c9364c7a
commit 8dd17f84f6
14 files changed
+757

No files matched your search

@@ -0,0 +1,13 @@
package auth_service;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class AuthServiceApplication {
public static void main(String[] args) {
SpringApplication.run(AuthServiceApplication.class, args);
}
}
+5
View File
@@ -0,0 +1,5 @@
spring:
application:
name: auth-service
app:
version: '@project.version@'
+13
View File
@@ -0,0 +1,13 @@
88888888888 888888b. 8888888b. 888 888 d8888 888 888
888 888 "88b 888 Y88b 888 888 d88888 888 888
888 888 .88P 888 888 888 888 d88P888 888 888
888 .d88b. 8888888K. .d88b. 888 d88P 888 8888b. 888 888 .d88b. .d88888 d88P 888 888 888 888888 88888b.
888 d88""88b 888 "Y88b d8P Y8b 8888888P" 888 "88b 888 888 d8P Y8b d88" 888 d88P 888 888 888 888 888 "88b
888 888 888 888 888 88888888 888 888 .d888888 888 888 88888888 888 888 888888 d88P 888 888 888 888 888 888
888 Y88..88P 888 d88P Y8b. 888 888 888 888 Y88b 888 Y8b. Y88b 888 d8888888888 Y88b 888 Y88b. 888 888
888 "Y88P" 8888888P" "Y8888 888 888 "Y888888 "Y88888 "Y8888 "Y88888 d88P 888 "Y88888 "Y888 888 888
888
Y8b d88P
"Y88P"
${application.title} ${application.version}
Powered by Spring Boot ${spring-boot.version}
@@ -0,0 +1,13 @@
-- Create the users table
CREATE TABLE users
(
id BIGSERIAL PRIMARY KEY,
email VARCHAR(255) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL,
enabled BOOLEAN NOT NULL DEFAULT TRUE
);
-- Insert a pragmatic test user for local development and testing
-- The password hash corresponds to 'password123'
INSERT INTO users (email, password, enabled)
VALUES ('test@example.com', '$2a$10$8.UnVuG9HHgffUDAlk8qfOuVGkqRzgVymGe07xd00dmOn.jptTVyG', true);
@@ -0,0 +1,13 @@
package auth_service;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class AuthServiceApplicationTests {
@Test
void contextLoads() {
}
}