Giter VIP home page Giter VIP logo

team-fury-1's People

Contributors

abuh05 avatar adekniyi avatar adeoyebrass avatar ayopips avatar boovybernard avatar crestward avatar damilare50 avatar dave-ok avatar dro-1 avatar ekaji avatar ekpenyongmike avatar faithmo avatar forte001 avatar francisop avatar hng-teamfury avatar idadelveloper avatar jgodstime avatar johnsani avatar lihemen avatar marknesh avatar maroafenogho avatar mrkellard avatar noble-47 avatar nyior avatar piouson avatar qobitech avatar rubylena avatar sammyebinne avatar simply-alliv avatar thebolarin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

team-fury-1's Issues

Trouble comparing the output from the scripts to the expected output

`<?php
$names = array();
$key_words = "Hello World, this is with HNGi7 ID using language for stage 2 task";

foreach(glob("scripts/*.js") as $filename){
    $output = exec("node $filename");
	echo $output;
	echo $key_words;
    if(preg_match('/{$key_words}/i', $output)){
       echo "pass";
       echo "<br>";
    }else{
       echo "fail";
       echo "<br>";
    }
    array_push($names, $filename);
}
foreach(glob("scripts/*.php") as $filename){
    $output = shell_exec("node $filename");
    echo($output);
    echo "<br>";
    array_push($names, $filename);
}
foreach(glob("scripts/*.py") as $filename){
    $output = shell_exec("./$filename");
    array_push($names, $filename);
}

echo "All files in the scripts directory are: ";
foreach($names as $name){
    print_r($name);
    echo "<br>";
}
?>
`

Creating Server to run script and also to watchout for new commits

I have created a server that is currently running on aws and it runs the scripts for php, python, and also nodejs...now I would like to make it watch for each commit that is been done so as to have a straight and effect server for the display of output for each commit.

Thank you.

Live server edit

The names of the old team leads is what shows on our live server. Someone please look into it and change it.

Possible improvements

Ensure Language in script and file type are the same
If the intern chooses Python as his main language for stage 2 then he should use a python file etc..

Email Regex in Output

The parser.php $regex includes the email and mark has instructed we leave our email out of the output....it should only be one of the variables in our script.....
Can this issue be addressed?
Screenshot_20200603-181303

Implement frontend ui

Many of us are separately working on a UI version, this issue is to help merge our efforts to go with the backend in #22

Please review work so far and discuss with @Adiomojeed in #2 for all frontend ideas.

You can mention your PRs here if any or move all discussions to #2

Thank you!

Remove email from regex

The assignment doesn't require us to output our email. And as it stands those who will not provide it will get a fail.

Merging PRs of Scripts Team

This issue is responsible for ensuring that all open PRs for scripts are closed before the deadline. The review team should coordinate with us to increase our productivity. Will communicate with them on that.

Update

We will now be reviewing and merging the PRs.

  • Add a label "under review" when you start working on a PR.
  • Check the base branch is dev if not, edit the title and change to dev branch before merging..
  • Do not merge too many files
  • If you find errors, please add to the Invalid Scripts file.

israel

var text="hello world,Am ";
var fullname="Israel ";
var word="from ";
var company="HNGi7 ";
var id="HNG-04195 ";
var text1="using ";
var language="javascript language ";
var stage="for stage 2 task email is,";
var email="[email protected]";
console.log(text+fullname+word+company+id+text1+language+stage+email);

Implement server side code to exec all scripts and return pass or fail

  • Run exec on all files in ./scripts and read results
  • Compare each result with expected output
  • Output pass if result match expected or fail otherwise

Example JSON output

{
  "file": "myScript.py",
  "output": "Hello World, this is Olagesin Samuel with HNGi7 ID HNG-04817 using Python for stage 2 task",
  "name": "Olagesin Samuel",
  "id": "HNG-04817",
  "email": "[email protected]",
  "language": "Python",
  "status": "Pass"
}

Example HTML output

<table>
  <tr>
    <th>file</th>
    <th>output</th>
    <th>name</th>
    <th>id</th>
    <th>email</th>
    <th>language</th>
    <th>status</th>
  </tr>
  <tr>
    <td>myScript.py</td>
    <td>Hello World, this is Olagesin Samuel with HNGi7 ID HNG-04817 using Python for stage 2 task</td>
    <td>Olagesin Samuel</td>
    <td>HNG-04817</td>
    <td>[email protected]</td>
    <td>Python</td>
    <td>Pass</td>
  </tr>
</table>

Improve Documentation

Great documentation, rules, and guidelines for team

Description

Since we have to work very efficiently and effectively together. One of the most important resources for great collaboration, especially for newcomers, is great documentation. Great documentation can help the team understand what needs to be done and how it should be done. It can also allow the team to remain consistent and improve productivity. This is achieved through rules and guidelines spread throughout the documentation.

Requirements

Below is a list of requirements we should do to improve our documentation. The requirements can be updated.

  • README.md file (contains all the instructions to get started and provides an overview of what the project is and what its main counterparts (e.g. backend) are).
  • CONTRIBUTING.md file (contains all the instructions for contributing to the project)
  • CODE_OF_CONDUCT.md file (contains all the instructions on how we should conduct ourselves when interacting with any team member)
  • STYLE_GUIDE.md file (contains all the instructions on how code should be styled to maintain consistency between all team members)

Contributing

Here is the link to the repo we should all share and make changes on. So just clone the repo.

It's important to commit your changes to the remote repo as often as possible so that everyone else working on the repo can get the updated repo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.