Giter Club home page Giter Club logo

js-webinar's Introduction

js-webinar

Tasks of JS webinar.

Requirements

  • Git
  • NodeJS 12+

Setup

$> git clone https://github.com/idea-pool/js-webinar.git
$> cd js-webinar
$> npm install

Running tests

To run tests for each module, you can use the

$> npm run test:module-N

where N is the number of modules, i.e. 1-5.

For example to run the test for the first module, use

$> npm run test:module-1

Tasks

To solve the tasks of each module, first, you should read both the documentation (i.e. /** */) and simple comments (i.e., //, /* */) carefully, but in short, the following actions should be taken:

  1. The solution code should be written between the comment lines which indicate it and the result should be assigned to the given variable:

    // PLACE YOUR CODE BETWEEN THIS...
    resultVariable = 42;    
    // ...AND THIS COMMENT LINE!
  2. In this module, the Mocha test suites and test cases should be defined in module-2/test/calc.spec.js.

    Implementing the suites and cases is not the main task in this module, but it can be done.

  3. In this module, the task is to create Element, Elements, Layout, and HomePage classes according to what is written in the presentation.

  4. In this module, the task is to create the functions based on the documentation comments.

  5. In this module, the task is to create a feature file based on the test cases from TEST-CASES.md and create the pending step definitions.

Note that for documenting the requirements of some tasks, the JSDocs is used.

Additional tasks

The repository also contains a couple of additional tasks to solve in the plus folder. To run the tests for these tasks, the npm run test:plus command can be used.

In addition, there are thousands of other tasks on HackerRank from which most can be solved using JavaScript and are a good practice. Solving these tasks are highly encouraged ;)

Task review

First of all, tests can be used to check whether the solutions are correct or not. On the other, if the implementations are pushed to a forked repository and a pull request is opened to the master branch, it will be reviewed.

To have a forked repository and to create a pull request, the following steps could be done:

  1. Create a GitHub account.

  2. Fork the repository using the Fork button, which can be found in the top-right corner.

  3. Clone your instance of the forked repository to your computer:

    $> git clone https://github.com/<your-user-name>/js-webinar.git
    $> cd js-webinar
    
  4. To get updates and the latest version, you should set the original repository as another remote:

    $> git remote add source https://github.com/idea-pool/js-webinar.git
    
  5. Anytime you want to update your code with the latest changes on the original repository, the following command should be executed:

    $> git pull source
    
  6. If you have done any change, you can commit and push it to your repository:

    $> git add .
    $> git commit -am "<describe-your-changes>
    $> git push origin master
    
  7. Create a pull request either using the option GitHub offers in your repository or using the Create Pull request option above the file list.

    Note that the Compare across forks might need to be clicked first to see the forked repository (yours too).

  8. If the pull request is in place, a review can be requested for it by adding the account sorosz89 (optionally szikszail) as a reviewer.

Important! These review pull requests won't be merged to any branch of the original repository.

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.