Skip to content

TOBECHI-GH/HNGi7_Titans_Task2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

HNGi-7 || Team-Titans || Task 2

Task 2 || Contents

How 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 this https://github.com//HNGi7_Titans_Task2.git
  • Open the htdocs folder in the xampp in the root directory.
    (click here to download xampp and follow this step after.)
  • If you are using lamp navigate to /var/www/html/ in the root directory.
    (click here for the installation process or find a suitable procedure for your linux distro and follow this step after.)
  • Create a folder with HNG in the htdocs or /var/www/html/ and open the gitbash Terminal here OR open this HNG 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 further 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 move your script to the Script folder and make sure you have Python3 installed.
  • Save the updated file and test it.
  • Note: Whatever you do, do not tamper with the index.php file


For Javascript Developers

  • After cloning the repository
  • Create a new file in the scripts folder with your Slack username, like this tmajor.js
  • Simply move your script to the Script folder and make sure you have Node Js installed.
  • Save the updated file and test it.
  • Note: Whatever you do, do not tamper with the index.php file


For PHP Developers

  • After cloning the repository
  • Create a new file in the scripts folder with your Slack username, like this tmajor.php
  • Simply move your script to the Script folder.
  • Save the updated file and test it.
  • Note: Whatever you do, DO NOT tamper with the index.php file


Task 2 || How To Test Your Script

  • After building the script.
  • Open Xampp on your computer, and start Apache.
  • On linux check if apache is running with sudo service apache2 status if not 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
  • Append index.php?json to the above url if you do not see a detailed results page.
  • 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)$ || root@user:/var/www/html/HNG/HNGi7_Titans_Task2$ on linux)
  • 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...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.8%
  • PHP 20.7%
  • Python 18.2%
  • Other 0.3%