Skip to content

Commit b07a808

Browse files
committed
UPDATED example person Data
1 parent d483f7d commit b07a808

File tree

4 files changed

+38
-24
lines changed

4 files changed

+38
-24
lines changed

documents/GETTING_STARTED.MD

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ These instructions will get you a copy of the project up and running on your loc
55
<details open="open">
66
<ul>
77
<li><a href="#prerequisites">Prerequisites</a></li>
8-
<li><a href="#eer-diagram">EER Diagram</a></li>
98
</ul>
109
</details>
1110

@@ -15,7 +14,13 @@ These instructions will get you a copy of the project up and running on your loc
1514

1615
[Mailtrap](https://mailtrap.io/) or any other service like **Gmail**, etc., can be used to create an SMTP.
1716

18-
**MAIL_HOST**, **MAIL_PORT**, **MAIL_PROTOCOL** is configured in the **.env** file. Now configure **MAIL_USERNAME**, **MAIL_PASSWORD** as environment variable.
17+
~~~txt
18+
MAIL_PROTOCOL=smtp
19+
MAIL_HOST=smtp.mailtrap.io
20+
MAIL_PORT=2525
21+
MAIL_USERNAME=
22+
MAIL_PASSWORD=
23+
~~~
1924

2025
[dotenv-java](https://github.com/cdimascio/dotenv-java) is used to Load environment variables from the **.env** file.
2126

@@ -35,7 +40,16 @@ create user 'sbat'@'localhost' identified by 'sbat';
3540
grant all privileges on *.* to 'sbat'@'localhost' with grant option;
3641
~~~
3742

38-
We need to specify our Environment variables for the application. Open up the **`.env`** file and update your **DB_DATABASE**, **DB_USERNAME**, **DB_CONNECTION**, **DB_HOST**, **DB_PORT** and **DB_PASSWORD** in the appropriate fields.
43+
We need to specify our Environment variables for the application. Open up the **`.env`** file and update the fields with appropriate values.
44+
45+
~~~txt
46+
DB_CONNECTION=
47+
DB_HOST=
48+
DB_PORT=
49+
DB_DATABASE=
50+
DB_USERNAME=
51+
DB_PASSWORD=
52+
~~~
3953

4054
If you do not wish to use environment variables. After creating the database/schema, you need to add your **MySQL** `username` and `password` in the `application-dev.properties` file on `src/main/resource`. The lines that must be modified are as follows:
4155

src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html
33

44
# Comma-separated list of active profiles. Can be overridden by a command line switch.
5-
spring.profiles.active=dev
5+
spring.profiles.active=test

src/main/resources/data/h2db/migrations/V0_0_8__example_data_person.sql

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
/*
88
* Data
99
*/
10-
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Installation','Installation',45,'2006-12-25','[email protected]','[email protected]','MALE', 0,'John Doe','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','7298509040','johndoe', 1);
11-
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Installation','Installation',51,'2006-12-25','[email protected]','[email protected]','MALE', 0,'Cosimo Lahive','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','6378723056','clahive1', 2);
12-
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Installation','Installation',44,'2006-12-25','[email protected]','[email protected]','MALE', 1,'Trenton Penk','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','9933609432','tpenk2', 3);
13-
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Installation','Installation',45,'2006-12-25','[email protected]','[email protected]','FEMALE', 1,'Dion Deppe','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','5002172728','ddeppe3', 4);
14-
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Installation','Installation',60,'2006-12-25','[email protected]','[email protected]','FEMALE', 1,'Anthea Marioneau','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','7014238017','amarioneau4', 5);
15-
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Installation','Installation',31,'2006-12-25','[email protected]','[email protected]','MALE', 1,'Issiah Rosewell','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','3479815954','irosewell5', 6);
16-
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Installation','Installation',29,'2006-12-25','[email protected]','[email protected]','FEMALE', 0,'Harli Naulls','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','5075226268','hnaulls6', 7);
17-
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Installation','Installation',36,'2006-12-25','[email protected]','[email protected]','MALE', 1,'Douglas Dowzell','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','2787782085','ddowzell7', 8);
18-
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Installation','Installation',45,'2006-12-25','[email protected]','[email protected]','FEMALE', 1,'Ferdinande Mycroft','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','9612108829','fmycroft8', 9);
19-
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Installation','Installation',66,'2006-12-25','[email protected]','[email protected]','FEMALE', 0,'Jania Blakeley','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','7971347462','jblakeley9', 10);
20-
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Installation','Installation',58,'2006-12-25','[email protected]','[email protected]','MALE', 1,'Vladimir Horsted','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','9733327084','vhorsteda', 11);
21-
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Installation','Installation',51,'2006-12-25','[email protected]','[email protected]','MALE', 1,'Neal Hryniewicki','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','6866517623','nhryniewickib', 12);
10+
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('johndoe','johndoe',45,'2006-12-25','[email protected]','[email protected]','MALE', 0,'John Doe','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','7298509040','johndoe', 1);
11+
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('johndoe','johndoe',51,'2006-12-25','[email protected]','[email protected]','MALE', 0,'Cosimo Lahive','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','6378723056','clahive1', 2);
12+
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('janedoe','janedoe',44,'2006-12-25','[email protected]','[email protected]','MALE', 1,'Trenton Penk','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','9933609432','tpenk2', 3);
13+
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('janedoe','janedoe',45,'2006-12-25','[email protected]','[email protected]','FEMALE', 1,'Dion Deppe','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','5002172728','ddeppe3', 4);
14+
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Admin1','Admin1',60,'2006-12-25','[email protected]','[email protected]','FEMALE', 1,'Anthea Marioneau','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','7014238017','amarioneau4', 5);
15+
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Admin1','Admin1',31,'2006-12-25','[email protected]','[email protected]','MALE', 1,'Issiah Rosewell','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','3479815954','irosewell5', 6);
16+
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Admin2','Admin2',29,'2006-12-25','[email protected]','[email protected]','FEMALE', 0,'Harli Naulls','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','5075226268','hnaulls6', 7);
17+
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Admin2','Admin2',36,'2006-12-25','[email protected]','[email protected]','MALE', 1,'Douglas Dowzell','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','2787782085','ddowzell7', 8);
18+
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('AdminTrainee1','AdminTrainee1',45,'2006-12-25','[email protected]','[email protected]','FEMALE', 1,'Ferdinande Mycroft','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','9612108829','fmycroft8', 9);
19+
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('AdminTrainee1','AdminTrainee1',66,'2006-12-25','[email protected]','[email protected]','FEMALE', 0,'Jania Blakeley','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','7971347462','jblakeley9', 10);
20+
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('AdminTrainee2','AdminTrainee2',58,'2006-12-25','[email protected]','[email protected]','MALE', 1,'Vladimir Horsted','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','9733327084','vhorsteda', 11);
21+
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('AdminTrainee2','AdminTrainee2',51,'2006-12-25','[email protected]','[email protected]','MALE', 1,'Neal Hryniewicki','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','6866517623','nhryniewickib', 12);
2222
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Installation','Installation',25,'2006-12-25','[email protected]','[email protected]','MALE', 1,'Chrisse Huggon','$2y$10$TGK.5Z.gLBOBlXjFlXTCme4PQlGneVhYrhLuzosdL8jd3xvuuuvYe','4681726109','chuggonc', 13);
2323
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Installation','Installation',54,'2006-12-25','[email protected]','[email protected]','MALE', 0,'Codi Thurstance','531994a90cd29c4d71300d5e9f56257ca0443b40','2487652387','cthurstanced', 14);
2424
INSERT INTO `example_person`(`created_by`,`last_modified_by`,`age`,`dob`,`email_primary`,`email_secondary`,`gender`,`is_adult`,`name`,`password`,`phone`,`username`,`address_id`) values ('Installation','Installation',21,'2006-12-25','[email protected]','[email protected]','FEMALE', 1,'Rahel Enion','31c69198fe6c8acf7de032e6db65d69714b063c2','9877324635','renione', 15);

0 commit comments

Comments
 (0)