Skip to content

Commit

Permalink
deploy: 2140c9b
Browse files Browse the repository at this point in the history
  • Loading branch information
otahirs committed Mar 16, 2024
0 parents commit 3d01fc7
Show file tree
Hide file tree
Showing 8 changed files with 758 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
Empty file added README.md
Empty file.
48 changes: 48 additions & 0 deletions backend/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>club.zabiny</groupId>
<artifactId>klabis</artifactId>
<version>0.1-SNAPSHOT</version>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.2</version>
</parent>

<properties>
<maven.compiler.release>17</maven.compiler.release>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<name>registry.polach.cloud/zbm/web-2.0/${project.artifactId}:${project.version}</name>
</image>
</configuration>
<executions>
<execution>
<goals>
<goal>build-image</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
22 changes: 22 additions & 0 deletions backend/src/main/java/club/klabis/KlabisApplication.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package club.klabis;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class KlabisApplication {
public static void main(String[] args) {
SpringApplication.run(KlabisApplication.class, args);
}

@Bean
public CommandLineRunner commandLineRunner() {
return args -> {

System.out.println("Spring funguje... :)");

};
}
}
Empty file added docker-compose.yml
Empty file.
Empty file added frontend/README.md
Empty file.
552 changes: 552 additions & 0 deletions index.html

Large diffs are not rendered by default.

136 changes: 136 additions & 0 deletions klabis-api-spec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
openapi: 3.1.0
info:
title: Klabis - OpenAPI 3.1
description: |-
contact:
email: [email protected]
license:
name: MIT License
version: 0.0.3
servers:
- url: https://klabis.zabiny.club
tags:
- name: personal-info
description:

paths:
/members:
post:
tags:
- personal-info
summary: Create a new club member
description: >
Creates a new club member with the provided details.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateClubMember'
responses:
'201':
description: New club member created successfully
'401':
description: Unauthorized - User does not have permission to create a new member
'500':
description: Internal Server Error

components:
schemas:
Contact:
type: object
properties:
contactType:
type: string
enum: [direct_contact, guardian_contact]
description: Type of contact information
email:
type: string
format: email
description: Email address of the club member or guardian
phone:
type: string
description: Phone number of the club member or guardian
Address:
type: object
properties:
street:
type: string
description: Street name and number
city:
type: string
description: City
postalCode:
type: string
description: Postal or ZIP code
country:
type: string
description: Country name
required:
- street
- city
- postalCode
- country
examples:
- street: 123 Main Street
city: City
postalCode: "12345"
country: Country
CreateClubMember:
type: object
properties:
firstName:
type: string
description: First name of the club member
lastName:
type: string
description: Last name of the club member
dateOfBirth:
type: string
format: date
description: Date of birth of the club member
nationalIdNumber:
type: string
description: Personal identification number of the club member
nationality:
type: string
description: Nationality of the club member
address:
$ref: '#/components/schemas/Address'
gender:
type: string
enum: [male, female, other]
description: Gender of the club member
contact:
$ref: '#/components/schemas/Contact'
siCard:
type: number
description: Chip number assigned to the club member
required:
- firstName
- lastName
- dateOfBirth
- nationalIdNumber
- nationality
- address
- gender
- contact
examples:
- firstName: John
lastName: Doe
dateOfBirth: "1990-01-01"
nationalIdNumber: "123456789"
nationality: US
address:
street: 123 Main Street
city: City
postalCode: "12345"
country: Country
gender: male
contact:
contactType: direct_contact
email: [email protected]
phone: "+1234567890"
siCard: 123

0 comments on commit 3d01fc7

Please sign in to comment.