Skip to content

Latest commit

 

History

History
73 lines (50 loc) · 3.24 KB

README.md

File metadata and controls

73 lines (50 loc) · 3.24 KB

Team Fury Script Tester

This is the repository for the stage 2 promotion task for HNG i7. Each team member is expected to create a file in the scripts folder with any programming language of their choice (preferrably JavaScript, PHP and Python).

For quick navigation:

Getting Started - Script Task for Stage 2

Installation

To get started locally, follow these instructions:

  1. Unless you've already done so, you will first need to make a fork of this repo.
  2. Use your forked repo to clone to your local repository by using git.
  3. Make sure that you have XAMPP 7.x.x or later installed (remember your install path for later). See instructions here.

Creating Your Script

The stage 2 task requres each and every member in Team Fury to create a script. Read further for more information.

The Goal

The goal of the stage 2 task is to create a script file that outputs a string in the following format:

Hello World, this is <Your Full Name> with HNGi7 ID <Your HNG ID> and email <Your Email> using <Your Programming Language> for stage 2 task.

Things To Consider

  1. Your script file should be located in the scripts folder.
  2. Your script file should be named using this convention: <your-username>.(js or php or py).
  3. The 4 required data fields should be variables.
  4. Your programming language should either be: PHP, Python, or JavaScript.

Running a Local Test Server

To run the local test server, follow these instructions:

  1. Move your local repo to your XAMPP htdocs folder path/to/your/xampp/htdocs.
  2. Open the XAMPP Control Panel.
  3. Start the Apache module.
  4. In the URL bar of your preferred browser, go to localhost/<local-repo-folder-name>/index.php. The <local-repo-folder-name> is the folder name of the local repo you moved in step 1 above.

Debugging PHP

To run a debugger on your PHP code, follow these instructions:

For VS Code

  1. See instructions here.

For PhpStorm

  1. See instructions here.

Others

For other IDEs, you can google how to setup debugging in your IDE.

Or you can create a PR adding instructions, on this README file, for your IDE.

Testing Your Script

To test your script, follow these instructions:

  1. Run a local test server
  2. Check the outcome of your script through the website's UI.

Making a Pull Request

If your code passed on during testing, you will have to make a PR to the main repository's dev branch.

Follow these instructions:

  1. On your local repo, commit your script to your remote repo.
  2. On your remote repo, make a PR to the main repository's dev branch.

Happy Hacking