HNGi-7 || Team-Titans || Task 2
Task 2 || ContentsHow To Fork A Repositrory
How To Build Your Script
How To Test Your Script
How To Commit Your Changes
Task 2 || How To Fork A Repositrory
- First, open the github repository
-
At the Top-Right corner of the screen(same line with the repository name), Click on
Fork
. This will take you toyour github account and create a copy of the repository in your github account. -
On your account, Click on
clone or download
to get a link like thishttps://github.com//HNGi7_Titans_Task2.git
-
Open the
htdocs
folder in thexampp
in the root directory.
(click here to download xampp and follow this step after.) -
Create a folder with
HNG
in thehtdocs
and open the gitbash Terminal here OR open thisHNG
folder in VSCode.
(click here to download git and follow this step after.) -
On your terminal and run this command in your terminal
git clone ( the_copied_link_from_your_github_account like this:: https://github.com//HNGi7_Titans_Task2.git )
Note: Ensure the Terminal opened in the HNG folder. - Kindly, watch any of these YouTube Videos below for furher understanding
- Learning with HNG
- Data School Note: Whatever you do, do not tamper with the index.php file
Task 2 || How To Build Your Script
For Python Developers
- After cloning the repository
-
Create a new file in the scripts folder with your Slack username, like this
tmajor.py
-
Simply copy the sample statement below and edit the
with your credentials.
- Save the updated file and test it. Note: Whatever you do, do not tamper with the index.php file
print("Hello World, this is with HNGi7 ID and email using python for stage 2 task");
For Javascript Developers
- After cloning the repository
-
Create a new file in the scripts folder with your Slack username, like this
tmajor.js
-
Simply copy the sample statement below and edit the
with your credentials.
- Save the updated file and test it. Note: Whatever you do, do not tamper with the index.php file
console.log("Hello World, this is with HNGi7 ID and email using javascript for stage 2 task");
For PHP Developers
- After cloning the repository
-
Create a new file in the scripts folder with your Slack username, like this
tmajor.php
-
Simply copy the sample statement below and edit the
with your credentials.
- Save the updated file and test it. Note: Whatever you do, DO NOT tamper with the index.php file
echo("Hello World, this is with HNGi7 ID and email using php for stage 2 task");
Task 2 || How To Test Your Script
- After building the script.
- Open Xampp on your computer, and start Apache.
-
Simply copy and paste this on the browser
http://localhost/hng/HNGi7_Titans_Task2/
- Scan through the output to confirm your script passed
- Commit and push the changes if the script passed the test. Note: Whatever you do, do not tamper with the index.php file
Task 2 || How To Commit Your Changes
- After testing the script.
-
Open the on the repository folder(This should look like this
@DESKTOP-P7FH7QG MINGW64 /c/xampp/htdocs/HNG/HNGi7_Titans_Task2 (master) $
) - Kindly, watch any of these YouTube Videos below
- Learning with HNG
- Free Code Camp
- Always confirm your commits on the github repository in your github account. Note: Whatever you do, do not tamper with the index.php file
Inform the Team Leads of your commits and wait...