Skip to content

Commit

Permalink
Version 1.0.0 (#94)
Browse files Browse the repository at this point in the history
Co-authored-by: Ivana Machacikova <[email protected]>
Co-authored-by: markpernia <[email protected]>
Co-authored-by: Johna91 <[email protected]>
Co-authored-by: ivamach <[email protected]>
Co-authored-by: DeakCsaba0124 <[email protected]>
Co-authored-by: Kollonay Zoltán <[email protected]>
  • Loading branch information
7 people authored May 23, 2024
1 parent 812a3b9 commit 871df97
Show file tree
Hide file tree
Showing 213 changed files with 18,177 additions and 36 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle


name: Java CI with Gradle

on:
[push, pull_request]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend/sportsmatch

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Execute Gradle build
run: ./gradlew build
28 changes: 28 additions & 0 deletions .github/workflows/build-react.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Test React

on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend/sportsmatch-app

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: latest

- name: Install dependencies
run: npm install

- name: Build frontend
run: npm run build

- name: Run test
run: npm test
25 changes: 25 additions & 0 deletions .github/workflows/checkstyle-react.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Check the React source code

on: [ push, pull_request ]

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend/sportsmatch-app

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: latest

- name: Install dependencies
run: npm install

- name: Lint
run: npm run lint
33 changes: 0 additions & 33 deletions .github/workflows/gradle.yml

This file was deleted.

6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
## Workflow

1. Create a feature branch when you start to work on a story and commit your changes to this
- the branch should be named `<id of the ticket>: <subject>`, for example `TB-3: Add login endpoint`
- the commits should also be named `<id of the ticket>: <subject>`, for example `TB-3: added unit tests`
- the branch should be named `<id of the ticket>: <subject>`, for example `SMA 3 Add login endpoint`
- the commits should also be named `<id of the ticket>: <subject>`, for example `SMA 3 added unit tests`
2. Push this frequently to the remote repository from your local
2. When the feature is done, create a Pull Request from the `feature_branch` to `development`, follow the guidelines
3. When the PR is approved, merge it, and delete your feature branch
Expand All @@ -19,7 +19,7 @@ Read this article how to write meaningful commit messages:
[How to Write a Git Commit Message](https://chris.beams.io/posts/git-commit/)

We follow the rules below:
- **Commit message format**: `TB-{id}: <subject>`
- **Commit message format**: `SMA {id} <subject>`
- **id**: Id of the ticket you are working on (in jira)
- **Subject**: Changes in the commit

Expand Down
41 changes: 41 additions & 0 deletions backend/sportsmatch/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### h2 database ###
./sportsmatch
*.db
61 changes: 61 additions & 0 deletions backend/sportsmatch/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.7'
id 'io.spring.dependency-management' version '1.1.4'
id 'checkstyle'
}

group = 'com'
version = '1.0.0'

java {
sourceCompatibility = '17'
}
checkstyle {
configDirectory = file("$rootProject.projectDir/../../config/checkstyle")
toolVersion '10.12.7'
}
checkstyleMain {
source = 'src/main/java'
}
checkstyleTest {
source = 'src/test/java'
}

configurations {
compileOnly {
extendsFrom annotationProcessor
}
}

repositories {
mavenCentral()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.h2database:h2'
implementation 'org.postgresql:postgresql:42.7.3'

annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation group: 'org.modelmapper', name: 'modelmapper', version: '3.1.1'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0'
implementation 'org.springframework.boot:spring-boot-starter-security'
testImplementation 'org.springframework.security:spring-security-test'
implementation 'io.jsonwebtoken:jjwt-api:0.12.3'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.3'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.3'
implementation 'org.springframework.boot:spring-boot-starter-validation'
}

tasks.named('bootBuildImage') {
builder = 'paketobuildpacks/builder-jammy-base:latest'
}

tasks.named('test') {
useJUnitPlatform()
}
17 changes: 17 additions & 0 deletions backend/sportsmatch/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: '3.8'

services:

crdb:
container_name: crdb
hostname: crdb
image: cockroachdb/cockroach:latest
command: start-single-node --cluster-name=example-single-node --logtostderr=WARNING --log-file-verbosity=WARNING --insecure
ports:
- "26257:26257"
- "8888:8080"
volumes:
- roach-single:/cockroach/cockroach-data

volumes:
roach-single:
Binary file not shown.
7 changes: 7 additions & 0 deletions backend/sportsmatch/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 871df97

Please sign in to comment.