Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


Install the tools you will need with the mac package manager homebrew

...

  • /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install java8: 

brew update 
brew cask install java

- install maven

...

3. Connect your shell to the default machine.

$ eval "$(docker-machine env default)"

- create an Elastic Search docker container

...

  • docker-compose up  ( use "-d" option to run in the background)
  • docker ps → verify the container is running
  • in a Chrome browser http://192.168.99.100:9200/ (localhost:9200 if your using docker for mac - native) - you should get an elastic search REST response

...

Setup an RO user on your local DB: 


INSERT INTO `HeeUser` (`name`, `firstName`, `lastName`, `gmcId`, `phoneNumber`, `emailAddress`, `active`)
VALUES
('

local_ro

jamesh', '

local

James', '

RO

Hudson', '

1234567

1000000',

NULL

'7788996655', '

local.ro@

jamesh@fake.

email.com

com', 1);
INSERT INTO

`UserDesignatedBody`

`UserRole` (`userName`,

`designatedBodyCode`)
VALUES
('local_ro', '1-85KJU0')

`roleName`)
VALUES
('jamesh', 'ConcernsAdmin'),
('jamesh', 'ETL'),
('jamesh', 'ProfileAdmin'),
('jamesh', 'RVAdmin'),
('jamesh', 'TisAdmin');
INSERT INTO `UserDesignatedBody` (`userName`, `designatedBodyCode`)
VALUES
('jamesh', '1-AIIDR8'),
('jamesh', '1-AIIDSA'),
('jamesh', '1-AIIDVS'),
('jamesh', '1-AIIDWA'),
('jamesh', '1-AIIDWI');


insert into Role values ('SuperUser');
INSERT INTO `RolePermission` (`roleName`, `permissionName`) 
SELECT 'SuperUser' as 'roleName', `name` as 'permissionName'
FROM `Permission`;

delete from RolePermission where permissionName = 'revalidation:submit:to:gmc' and roleName = 'SuperUser';


INSERT INTO `UserRole` (`userName`, `roleName`)
VALUES
('

local_ro

jamesh', '

RVOfficer

SuperUser');


INSERT INTO `HeeUser` (`name`, `firstName`, `lastName`, `gmcId`, `phoneNumber`, `emailAddress`, `active`)
VALUES
('

jamesh

local_ro', '

James

local', '

Hudson

RO', '

1000000

1234567', NULL , '

james@

local.ro@fake.email.com', 1);
INSERT INTO `UserDesignatedBody` (`userName`, `designatedBodyCode`)
VALUES
('

jamesh

local_ro', '1-85KJU0');

INSERT INTO `UserRole` (`userName`, `roleName`)
VALUES
('

jamesh

local_ro', '

ConcernsAdmin'),
('jamesh', 'RVAdmin

RVOfficer');


Shell script to automate running the application

...