Giter Club home page Giter Club logo

js-training's Introduction

Build Status

Setup

First, fork this repository.

globals dependencies

install globaly node on your computer

# download your code locally
git clone https://github.com/GITHUB_LOGIN/js-training.git
# don't forget to remplace GITHUB_LOGIN by your github login

# change working directory to the newly cloned repository
cd js-training

Testing

Once you have coded your masterpiece, you can start to test your solutions.

You may either use our test tool to check all files

# run the test runner
./tester

output-tester

Or you can run only a some tests with

# run the test runner with args ( basics, advanced, math, get)
./tester basics

Or you can test files one by one with node

# open a file in node
node exercises/primitives

output-node

our tester may include bugs, feel free to check the code and fix it

(in doubt use node)

Solving

You can start editing the javascript files with your favorite text editor.

# Sublime Text
subl primitives.js

# VSCode
code primitives.js

# Vim
vim primitives.js

# I can not be held responsable if you use anything else.

where-to-code

Get Help !

We maintain an example based code documentation

All you need to know to solve those exercises is described in them.

And we also made you a currated list of all the most usefull methods :

(*) methods in italics are NOT pure (using them with the same arguments won't return the same result). They must be used with caution as it is harder to predict their results

Update

We may update tests, to apply them fetch and merge the master branch back to your branch.

git merge pull push branch checkout origin master stash pop

Test Style

We recommand to use editorconfig to auto-config your editor to match the coding style

We also made an .eslint rule to help you formating your code.

You may want to use eslint and prettier-eslint for painless application of the style

Automated test

We recommand to use Travis to automatise the testing phase, allow this repo and add this code in your README [![Build Status](https://travis-ci.org/DrKhyz/js-training.svg?branch=master)](https://travis-ci.org/DrKhyz/js-training) by remplacing GITHUB_LOGIN by your github login

Contribute

We greatly recommand you to add your own tests to this list

  • add your test file (ex: exercises/my-test.js)
  • edit package.json and add "my-test" to the "tests" array with the syntax {"tag": X, "name": NAME} where you replace the tag (x) and the name (NAME)
  • make a pull request !https://github.com/nan-academy/js-training/compare/master...GITHUB_LOGIN:master

All the tests must be written using assert for ./tester to work properly.

js-training's People

Contributors

kigiri avatar drkhyz avatar akabab avatar laetitiaouelle avatar lfoussat avatar emmadal avatar

Watchers

James Cloos avatar

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.