Skip to content

ONSdigital/ssdc-rm-support-tool

Repository files navigation

ssdc-rm-support-tool

Basic running

1st apply security as below

Locally if you bring up your docker dev you should navigate to: http://localhost:9999/ and see surveys, print templates etc. Running a few AT tests is a great way to populate this data.

For testing/debugging it's advised you use VSCode and have Babel Javascript installed, this does cunning things and allows you to debug.

Then run 'make run-dev-ui'. This will run the node server in the background. You can then edit the UI code in VSCode and run it, a new browser pointing to localhost:3000 should appear. The code can be edited in VSCode without restarting the backend 'make run-dev-ui'

Security

Not seeing the features you want or need? Try adding yourself as a super user, like this:

insert into casev3.users
values ('8d44dca6-359e-4e84-b55d-2d1903f9e561', -- user ID
        '[email protected]');              -- user email

insert into casev3.user_group
values ('8269d75c-bfa1-4930-aca2-10dd9c6a2b42', 'The superest of super users', 'super');

insert into casev3.user_group_member
values ('fb5d6366-e009-46f2-b23e-7b6ee6a27f97',  -- member ID
        '8269d75c-bfa1-4930-aca2-10dd9c6a2b42',  -- group ID
        '8d44dca6-359e-4e84-b55d-2d1903f9e561'); -- user ID

insert into casev3.user_group_permission
values ('c469377e-680e-4cb1-92a0-5217be2b3a52', -- permission ID
        'SUPER_USER',                           -- activity
        '8269d75c-bfa1-4930-aca2-10dd9c6a2b42', -- group ID
        null);