g

Filipe Lourenco : Update Policies Templates

Tools:

Visual Studio code
Github access
Server access

Visual Studio code:

Open the frontend file after the server is connected
(note: any change and save here will reflect on the tool)

Server (local access):

  1. cd development

  2. cd frontend

  3. git pull

  4. yarn install
    If does not work use
    nvm install 18.10.0
    nvm use 18.10.0

  5. yarn serve

  6. Will generate url for local access (http://localhost:3001/)

Git commands

What it does

Order to create PR

git clone < repo

|| clones from the repo

git pull origin (branch)

|| update branch

1st

git fetch

|| update remote references

|| new branches, tags

|| deleted branches

git checkout <revision>

II Go to a contain

II version of the project

git add <path>

(git add .)

|| stages changes for commit

3rd

git commit -m “????”

|| commits

4th

git push origin <branch>

|| uploads to GitHub

5th

git merge <branch>

DO IN GH to PR

6th

git checkout -b <name>

2nd

Important commands

Important commands

Important commands

git status

git log tig

q (to go back)

git diff

Steps how to create a PR

Help

Screenshots

1- Create Jira (story)

2- git checkout master

And git pull

Important

3 - create a branch (from master) with ticket ref (story)/title-with-issue

This can be done in VS

4- git checkout <branch name>
(if not on not branch)

In the branch can be made whatever modification needed

5- yarn build

to be verified by Thomas or Felipe

6- git add .

7- git commit -m "any message"

message can be small title of the issue

8- git push

copy git push upstream message paste it and run it

  i.e:  git push --set-upstream origin MON-4634-MS-1798-update-policies

9- When it is pushed you will see it as the first thing in the repo (Git)

The subject of the ticket should be changed to Jira ticket nr (MON-456) and include the issue or change of the request

10 - Then you can click the button "Create Pull request" in Git

UPDATE folders in the console
add SSH (ssh-add -K ~/.ssh/id_ed25519)

cd mon-frontend-reports
git checkout master
git checkout main
git pull

cd angular-shared-components
git checkout master
git pull

cd backend_admin
git checkout master
git pull
______________________
git stash
(Use git stash when you want to record the current state of the working directory and the index, but want to go back to a clean working direct)
git pull

cd page-assist
git checkout master
git checkout main
git pull

cd puppeteer-accessibility-scanner
git checkout master
git checkout main
git pull

git mon-consent-message-encoder
git checkout master
git pull

All the folders: AccessibilityJS
cookie-banner
page-assist
angular-shared-components
frontend
puppeteer-accessibility-scanner
backend_admin
mon-consent-message-encoder
qa-e2e-automation
chrome_extension
mon-frontend-reports