Code Monkey home page Code Monkey logo

js_task-guideline's Introduction

Guideline how to implement solution for JS tasks

Prepare the project

  1. Fork the repo (Github repository)
  2. Clone the forked repo
    git clone the-link-from-your-forked-repo
    
    • You can get the link by clicking the Clone or download button in your repo
  3. Open the project folder in your IDE
  4. Open a terminal in the project folder
  5. Create a branch for the solution and switch on it
    git checkout -b develop
    
    • You can use any other name instead of develop
  6. Run npm install (or just npm i) to install the dependencies

Implement the solution

  1. Implement the solution within a function in src/<task_name>.js Where to write a solution
  2. Run npm run test (or just npm test) to check if your solution is correct
    • If at least one test fails fix the solution and check again.
  3. Run npm run lint to see if your code follows the the simplified styleguide
    • If you see some errors fix them and check again
  4. Save the solution
    git commit -am 'Solution'
    
    • code style is automatically checked again when you commit the code
    • Fix all the errors before committing again
  5. Push the solution to the repo
    git push origin develop
    
    • If you created another branch (not develop) use its name instead
    • The tests are run again before the push to ensure the solution still works
    • Fix all the test and commit before pushing again

Create a Pull Request (PR)

  1. Open your repo on Github and create a Pull Request (PR) New PR button
  2. Select your branch in the dropdown Create PR button
  3. Verify the PR details and code (scroll down to see it) and confirm Create PR confirmation

If a mentor requested changes on your PR

  1. Repeat Implement the solution section
  2. PR is updated automatically after a push to your branch on Github

After updating your PR - click on re-request button at PR page IF YOU NEED ADDITIONAL REVIEW OF YOUR CODE. Image of re-request button

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.