Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

### We plan to use our existing domain: csaba79coder.com

## Basic setup

- See manual

## Backend Dependencies

- Java Development Kit - JDK 17
Expand All @@ -21,7 +25,6 @@
- MySQL
- Spring Security
- Log4j2
- Validator

## Frontend Dependencies

Expand All @@ -36,6 +39,7 @@
- JUnit 5
- Mockito
- JUnit Jupiter
- H2 Database (in memory database)
- Spring Boot Test
- Spring Boot Starter Test
- Spring Boot Test Autoconfigure
Expand All @@ -59,11 +63,19 @@

## Future plan

- Improve test coverage (unit tests, integration tests, end-to-end tests)
- Implement login form and Spring Security
- Create separate table for roles (and set a list of roles to the users)
- After roles are implemented, we plan to make a separate REST API & Thymeleaf for the user (now only admin implemented)
- We plan to use our existing domain: csaba79coder.com
- We plan to make registration with social media
- We also plan to make a mobile app (and using google map's API there for the localization of the users)
- Creating javadoc for the project

## Collaborations

- GitHub
- Postman (sharing workspace)

# Created by:

Expand Down
58 changes: 58 additions & 0 deletions doc/database/data/litter_snap_address.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
-- MySQL dump 10.13 Distrib 8.0.26, for Win64 (x86_64)
--
-- Host: localhost Database: litter_snap
-- ------------------------------------------------------
-- Server version 8.0.26

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `address`
--

DROP TABLE IF EXISTS `address`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `address` (
`id` binary(16) NOT NULL,
`created_at` datetime NOT NULL,
`created_by` binary(16) DEFAULT NULL,
`updated_at` datetime NOT NULL,
`updated_by` binary(16) DEFAULT NULL,
`city` varchar(255) DEFAULT NULL,
`country` varchar(255) DEFAULT NULL,
`first_line` varchar(255) DEFAULT NULL,
`post_code` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `address`
--

LOCK TABLES `address` WRITE;
/*!40000 ALTER TABLE `address` DISABLE KEYS */;
INSERT INTO `address` VALUES (_binary '\07D��EN[�F\��ͧO','2023-06-01 21:41:27',_binary 'gr\�ܧ�H&�:\�vO\�\�','2023-06-01 21:41:27',_binary '\�Հ�\�GՏ����X0 ','London','United Kingdom','London street 100','SE61PJ'),(_binary 'P$Z\�(K\"���Ƈ�\�','2023-05-31 22:12:57',_binary 'gr\�ܧ�H&�:\�vO\�\�','2023-05-31 22:12:57',_binary '\�Հ�\�GՏ����X0 ','Budakalasz','Hungary','Gerinc utca 2287/3','2011');
/*!40000 ALTER TABLE `address` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2023-06-05 23:05:04
60 changes: 60 additions & 0 deletions doc/database/data/litter_snap_litter.sql

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions doc/database/data/litter_snap_litter_report.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
-- MySQL dump 10.13 Distrib 8.0.26, for Win64 (x86_64)
--
-- Host: localhost Database: litter_snap
-- ------------------------------------------------------
-- Server version 8.0.26

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `litter_report`
--

DROP TABLE IF EXISTS `litter_report`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `litter_report` (
`id` binary(16) NOT NULL,
`created_at` datetime NOT NULL,
`created_by` binary(16) DEFAULT NULL,
`updated_at` datetime NOT NULL,
`updated_by` binary(16) DEFAULT NULL,
`litter_id` binary(16) NOT NULL,
PRIMARY KEY (`id`),
KEY `FKsnq0llmm4ac9f9ioow90jgdue` (`litter_id`),
CONSTRAINT `FKsnq0llmm4ac9f9ioow90jgdue` FOREIGN KEY (`litter_id`) REFERENCES `litter` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `litter_report`
--

LOCK TABLES `litter_report` WRITE;
/*!40000 ALTER TABLE `litter_report` DISABLE KEYS */;
/*!40000 ALTER TABLE `litter_report` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2023-06-05 23:05:04
59 changes: 59 additions & 0 deletions doc/database/data/litter_snap_litter_snap_user.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
-- MySQL dump 10.13 Distrib 8.0.26, for Win64 (x86_64)
--
-- Host: localhost Database: litter_snap
-- ------------------------------------------------------
-- Server version 8.0.26

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `litter_snap_user`
--

DROP TABLE IF EXISTS `litter_snap_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `litter_snap_user` (
`id` binary(16) NOT NULL,
`created_at` datetime NOT NULL,
`created_by` binary(16) DEFAULT NULL,
`updated_at` datetime NOT NULL,
`updated_by` binary(16) DEFAULT NULL,
`email` varchar(255) NOT NULL,
`first_name` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`role` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `UK_nx81u918yqdb14h441ins1jgi` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `litter_snap_user`
--

LOCK TABLES `litter_snap_user` WRITE;
/*!40000 ALTER TABLE `litter_snap_user` DISABLE KEYS */;
INSERT INTO `litter_snap_user` VALUES (_binary '\r�\n*UF��ȧ\�\��\�w','2023-06-01 19:14:05',_binary 'gr\�ܧ�H&�:\�vO\�\�','2023-06-01 19:14:05',_binary '\�Հ�\�GՏ����X0 ','kevinzefi1999@gmail.com','Kevin','$2a$10$/cIu8c0qAr9MLB6OXo3r.umaOh392bDqHudwxfAjMnUiI1u6MJYG2','ROLE_USER'),(_binary '>�4�~N)���AٽlW','2023-05-29 20:59:15',_binary 'gr\�ܧ�H&�:\�vO\�\�','2023-05-29 20:59:15',_binary '\�Հ�\�GՏ����X0 ','csabavadasz79@gmail.com','Csaba','$2a$10$IHGHLrIwDrapqOl9sAFXVeQZJNCw11P.QhzDoACnNVZInaM9EV4a2','ROLE_USER'),(_binary 'Iމ���H��/�\"9G\�','2023-06-04 17:27:58',_binary 'gr\�ܧ�H&�:\�vO\�\�','2023-06-04 17:27:58',_binary '\�Հ�\�GՏ����X0 ','test@testemail.com','Test','$2a$10$RVyObuY7eTQXYkoQV4he3O6GwxUjbAI3o3Ul0tNTLFbDvHIU8GVcK','ROLE_USER'),(_binary 'jĺ6�BN_����Tl�','2023-06-01 19:13:00',_binary 'gr\�ܧ�H&�:\�vO\�\�','2023-06-01 19:13:00',_binary '\�Հ�\�GՏ����X0 ','verejanvasile@gmail.com','Vasile','$2a$10$nN6jg4sEjhTZvhuZunSyt.n8DLaCQuOECbQf/bKCXwJJ/8vIfYqJu','ROLE_USER'),(_binary '�\\!\�\�AЀ�+_ݜ�\�','2023-06-02 12:07:42',_binary 'gr\�ܧ�H&�:\�vO\�\�','2023-06-02 12:07:42',_binary '\�Հ�\�GՏ����X0 ','eugene@gmail.com','Eugene','$2a$10$H/5j0TlgWVGB7fbxCXodo.3/dzK41Eo/NPPpb.8VikNOaOWU0QaLO','ROLE_USER'),(_binary '\�@�:YEA��\�sqd�,G','2023-06-04 18:33:41',_binary 'gr\�ܧ�H&�:\�vO\�\�','2023-06-04 18:33:41',_binary '\�Հ�\�GՏ����X0 ','regtest@gmail.com','RegistrationForm','$2a$10$M90LdTFXODRC3dsEITH2Q.Yle1ChFVwQzefzTHZjvRQRgfKA6PYIy','ROLE_USER'),(_binary '�1�G�L^��fmQ�R�','2023-06-04 18:42:59',_binary 'gr\�ܧ�H&�:\�vO\�\�','2023-06-04 18:42:59',_binary '\�Հ�\�GՏ����X0 ','redirectlogin@gmail.com','RedirectToLoginAfterReg','$2a$10$Up7Dzc5idkyftAVE/2N0Lef3f.dBfiws2mpO/HuGkTb8kuyg8vARy','ROLE_USER'),(_binary '�s�{A\�K��s�\" Ԁ�','2023-06-05 20:28:28',_binary 'gr\�ܧ�H&�:\�vO\�\�','2023-06-05 20:28:28',_binary '\�Հ�\�GՏ����X0 ','showvasile@test.com','TestForVasile','$2a$10$NugFZcqRsKItoiRMWFA37ud/e6ud6v31nDYt2Z/ydSgv5Zbwk6C1m','ROLE_USER');
/*!40000 ALTER TABLE `litter_snap_user` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2023-06-05 23:05:04
Binary file added doc/database/eerdiagram/litterSnapEerDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions doc/database/script/litter_snap_database_create_script.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE DATABASE litter_snap CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/mvp2-flowchart/class-diagram/controllers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/mvp2-flowchart/class-diagram/entities.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/mvp2-flowchart/class-diagram/enums.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/mvp2-flowchart/class-diagram/repositories.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/mvp2-flowchart/class-diagram/services.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/mvp2-flowchart/class-diagram/user_models.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/mvp2-flowchart/flowchart.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/mvp2-flowchart/litter-snap-mvp2-report.docx
Binary file not shown.
Loading