freeCodeCamp.org's open-source codebase and curriculum. Learn to code for free.
 
 
 
 
 
Go to file
Hugo d1b207553b fix(challenges): update test and add solution for DS challenge
ISSUES CLOSED: #164
2018-08-02 17:12:40 +09:00
.github Make issue template headers semantic (#152) 2018-07-24 15:01:03 -07:00
challenges fix(challenges): update test and add solution for DS challenge 2018-08-02 17:12:40 +09:00
docs docs: update the path to the PR image 2018-06-29 23:47:58 +05:30
formattingConversion feat(package): Initial Curriculum separation (#17174) 2018-05-21 19:26:49 +05:30
math-challenges fix(seed): Remove redundant seed files from math directory 2017-09-09 10:52:12 -05:00
requiresTests feat(package): Initial Curriculum separation (#17174) 2018-05-21 19:26:49 +05:30
schema fix(scripts): fix unpack and repack scripts for the new challenge schema 2018-07-30 11:36:10 +09:00
.babelrc feat: add dev dependencies (#1) 2018-06-08 18:31:07 +05:30
.editorconfig chore(tools): add linting, fomatting and other tools 2018-06-11 19:28:21 +05:30
.eslintignore chore(tools): add linting, fomatting and other tools 2018-06-11 19:28:21 +05:30
.eslintrc chore(tools): add linting, fomatting and other tools 2018-06-11 19:28:21 +05:30
.gitignore chore(gitignore): added dist/ folder (#101) 2018-07-01 20:23:29 +05:30
.npmignore feat(package): Initial Curriculum separation (#17174) 2018-05-21 19:26:49 +05:30
.prettierrc chore(tools): add linting, fomatting and other tools 2018-06-11 19:28:21 +05:30
.travis.yml chore(tools): update commitlint config for travis 2018-06-21 18:48:04 +05:30
CHANGELOG.md chore(release): 3.1.2 [skip ci] 2018-07-31 15:59:22 +00:00
LICENSE.md docs(license): Update License fix for GitHub (#16113) 2017-11-25 11:47:27 -06:00
README.md docs: add license, badges and banner 2018-06-29 23:47:58 +05:30
addAssertsToTapTest.js feat(seed): "unpack" and "repack" scripts 2018-04-03 19:52:56 +05:30
challengeTitles.js fix(seed): Simplify Unique Titles Test (#17056) 2018-04-13 15:15:40 +01:00
commitizen.config.js chore(tools): update commitlint config for travis 2018-06-21 18:48:04 +05:30
commitlint.config.js chore(tools): add linting, fomatting and other tools 2018-06-11 19:28:21 +05:30
create-challenge-bundle.js restructure challenges within directories 2015-12-14 13:19:30 -08:00
getChallenges.js fix(scripts): fix unpack and repack scripts for the new challenge schema 2018-07-30 11:36:10 +09:00
gulpfile.js feat(package): Initial Curriculum separation (#17174) 2018-05-21 19:26:49 +05:30
index.js feat(package): Initial Curriculum separation (#17174) 2018-05-21 19:26:49 +05:30
mongoIds.js feat(seed): "unpack" and "repack" scripts 2018-04-03 19:52:56 +05:30
package-entry.js feat(package): Initial Curriculum separation (#17174) 2018-05-21 19:26:49 +05:30
package-lock.json chore(release): 3.1.2 [skip ci] 2018-07-31 15:59:22 +00:00
package.json chore(release): 3.1.2 [skip ci] 2018-07-31 15:59:22 +00:00
repack.js feat(seed): add dasherized titles to unpacked filenames 2018-04-03 19:53:44 +05:30
test-challenges.js chore(release): releasing with latest updates (#11) 2018-06-13 19:19:37 +05:30
unpack.js feat(seed): add dasherized titles to unpacked filenames 2018-04-03 19:53:44 +05:30
unpacked.css feat(seed): "unpack" and "repack" scripts 2018-04-03 19:52:56 +05:30
unpacked.js feat(seed): "unpack" and "repack" scripts 2018-04-03 19:52:56 +05:30
unpackedChallenge.js fix(scripts): fix unpack and repack scripts for the new challenge schema 2018-07-30 11:36:10 +09:00
utils.js feat(package): Initial Curriculum separation (#17174) 2018-05-21 19:26:49 +05:30

README.md

freeCodeCamp Social Banner

freeCodeCamp Curriculum

Build Status npm (scoped) Pull Requests Welcome first-timers-only Friendly

This package contains the "challenge" files used in the freeCodeCamp Curriculum.

Installation

npm i @freecodecamp/curriculum
# or
yarn add @freecodecamp/curriculum

Usage

import { getChallenges } from '@freecodecamp/curriculum';

// fetch an array of blocks
// i.e. basic CSS, functional programming, etc.
getChallenges()

block Structure

{
  "name": "ES6",
  "order": 2,
  "time": "5 hours",
  "helpRoom": "Help",
  "challenges": [/*<challenge>*/],
  "fileName": "02-javascript-algorithms-and-data-structures/es6.json",
  "superBlock": "javascript-algorithms-and-data-structures",
  "superOrder": 2
}

challenge Structure

{
  "id": "ObjectId()",
  "title": "Declare a Read-Only Variable with the const Keyword",
  "description": [
    "A Description of the challenge and what is required to pass"
  ],
  "tests": [
    {
      "text": "should return \"foo\"",
      "testString": "a stringified function using Chai asserts"
    }
  ],
  "challengeType": 1,
  "translations": {},
  "files": {
    "indexjs": {
      "key": "indexjs",
      "ext": "js",
      "name": "index",
      "contents": [
        "Initial editor seed"
      ],
      "head": [
        "A place for test set up",
        "Can be thought of as mocha's beforeEach()"
      ],
      "tail": [
        "A place for test tear down",
        "Can be thought of as mocha's afterEach()"
        ]
    }
  }
},

Contributing

  1. 🍴 Fork this repo
  2. 👀 Follow the contributing guidelines outlined in Contributing Guidelines.
  3. 🔧 Make some awesome changes!
  4. 👉 Make a pull request
  5. 🎉 Get your pull request approved - success!

License

Copyright (c) 2018 freeCodeCamp.

The curricular content in this repo is licensed under the CC-BY-SA-4.0