-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from szymonpoltorak/devel
Sprint 7 - merge
- Loading branch information
Showing
115 changed files
with
1,847 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,76 @@ | ||
# Corn | ||
|
||
Team project with aim to create an open source developer collaboration platform for small teams. | ||
Team project with aim to create an open source developer collaboration platform for small teams. We are creating | ||
application that is built of few components. | ||
|
||
* Frontend client, | ||
* Backend server, | ||
* Keycloak Auth Server, | ||
* Nginx Reverse Proxy, | ||
* Postgres database. | ||
|
||
Whole application has been made in spirit of clean code and architecture. We are thinking about security and performance | ||
best practices. Project is deeply tested on backend site and uses Github Actions for CI/CD. | ||
|
||
## How to run | ||
|
||
Application uses docker compose technology to run all components. To run application you have to install docker. | ||
|
||
We have to different ways to start application. | ||
|
||
1. Using docker compose command directly | ||
|
||
* Clone repository | ||
* Go to root directory | ||
* If you want development environment run | ||
|
||
```bash | ||
docker compose -f docker-compose.dev.yml up --build | ||
``` | ||
|
||
* If you want production environment run | ||
|
||
```bash | ||
docker compose -f docker-compose.prod.yml up --build | ||
``` | ||
|
||
2. Using scripts. We provided linux shell scripts that are able to run application in development and production mode. Just pick the right one and run it. | ||
For example if you want to run application in development mode run: | ||
|
||
```bash | ||
cd scripts/dev | ||
|
||
./run.dev.sh | ||
``` | ||
|
||
## Tech stack | ||
|
||
1. Frontend | ||
|
||
* Angular 16, | ||
* Angular 17, | ||
* Angular Material, | ||
* Angular PWA, | ||
* Keycloak Service, | ||
* Nginx, | ||
* NgIcons, | ||
* TypeScript, | ||
* Scss, | ||
* Angular Material | ||
* Docker, | ||
* Tailwind CSS, | ||
* Scss | ||
|
||
2. Backend | ||
|
||
* Java 17, | ||
* Spring Boot 3.15, | ||
* Spring Boot 3.1.5, | ||
* Spring Data Jpa, | ||
* Spring Security, | ||
* Spring Boot Validation, | ||
* Hibernate, | ||
* Postgres, | ||
* JavaMailSender, | ||
* OAuth2, | ||
* OAuth2 Resource Server, | ||
* Mockito, | ||
* JUnit, | ||
* H2 Database, | ||
* KeyCloak, | ||
* Mapstruct, | ||
* Lombok | ||
* Lombok. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Corn Keycloak Auth Server | ||
|
||
This is a Keycloak server that is used to authenticate users for the Corn project. We included here two parts. | ||
|
||
* Keycloak Initializer, | ||
* Keycloak Theme | ||
|
||
First one is used for initializing configuration of keycloak application and second one is providing custom theme for | ||
keycloak pages like login, register, etc. | ||
|
||
Theme has been made using FreeMarker template engine and Tailwind CSS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,32 @@ | ||
# Corn Backend | ||
|
||
Backend for Corn collaboration plaform made in Java. | ||
Application has been made following the best clean code patterns and tried to maintain high code test coverage. | ||
It is a simple backend application that provides REST API for managing users and their roles. | ||
It is secured with KeyCloak. Application brings high level of abstraction, security and is easy to extend. | ||
|
||
## How to run it | ||
|
||
1. You can run application using gradle: | ||
|
||
```shell | ||
./gradlew bootRun | ||
``` | ||
|
||
2. To build a docker image and run it, use the `docker-compose.prod.yml` or `docker-compose.dev.yml` file in parent directory. | ||
|
||
## Technology stack | ||
|
||
* Java 17, | ||
* Spring Boot 3.15, | ||
* Spring Boot 3.1.5, | ||
* Spring Data Jpa, | ||
* Spring Security, | ||
* Spring Boot Validation, | ||
* Hibernate, | ||
* Postgres, | ||
* JavaMailSender, | ||
* OAuth2, | ||
* OAuth2 Resource Server, | ||
* Mockito, | ||
* JUnit, | ||
* H2 Database, | ||
* KeyCloak, | ||
* Mapstruct, | ||
* Lombok | ||
* Lombok. |
Oops, something went wrong.