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)
Git links:
Server (local access):
-
cd development
-
cd frontend
-
git pull
-
yarn install
If does not work use
nvm install 18.10.0
nvm use 18.10.0 -
yarn serve
-
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> |
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 |
cd mon-frontend-reports |
cd angular-shared-components |
cd backend_admin |
cd page-assist cd puppeteer-accessibility-scanner git mon-consent-message-encoder All the folders: AccessibilityJS |
Policies list for creation: