2018-06-29 22:43:50 +05:30
|
|
|

|
|
|
|
|
2018-06-13 19:19:37 +05:30
|
|
|
# freeCodeCamp Curriculum
|
2018-01-20 11:30:21 -05:00
|
|
|
|
2018-06-13 19:19:37 +05:30
|
|
|
[](https://travis-ci.org/freeCodeCamp/curriculum) [](https://www.npmjs.com/package/@freecodecamp/curriculum)
|
2018-06-29 22:43:50 +05:30
|
|
|
[](http://makeapullrequest.com)
|
|
|
|
[](http://www.firsttimersonly.com/)
|
2018-06-09 04:38:09 +05:30
|
|
|
|
2018-06-29 22:43:50 +05:30
|
|
|
> This package contains the "challenge" files used in the freeCodeCamp Curriculum.
|
2018-05-21 14:56:49 +01:00
|
|
|
|
2018-06-13 19:19:37 +05:30
|
|
|
## Installation
|
2018-05-21 14:56:49 +01:00
|
|
|
|
|
|
|
```sh
|
|
|
|
npm i @freecodecamp/curriculum
|
|
|
|
# or
|
|
|
|
yarn add @freecodecamp/curriculum
|
|
|
|
```
|
|
|
|
|
2018-06-13 19:19:37 +05:30
|
|
|
## Usage
|
2018-05-21 14:56:49 +01:00
|
|
|
|
|
|
|
```js
|
|
|
|
import { getChallenges } from '@freecodecamp/curriculum';
|
|
|
|
|
2018-06-13 19:19:37 +05:30
|
|
|
// fetch an array of blocks
|
|
|
|
// i.e. basic CSS, functional programming, etc.
|
|
|
|
getChallenges()
|
2018-05-21 14:56:49 +01:00
|
|
|
```
|
2018-06-13 19:19:37 +05:30
|
|
|
|
|
|
|
### `block` Structure
|
2018-05-21 14:56:49 +01:00
|
|
|
|
2018-06-09 04:38:09 +05:30
|
|
|
```js
|
2018-05-21 14:56:49 +01:00
|
|
|
{
|
|
|
|
"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
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2018-06-13 19:19:37 +05:30
|
|
|
### `challenge` Structure
|
2018-05-21 14:56:49 +01:00
|
|
|
|
2018-06-09 04:38:09 +05:30
|
|
|
```js
|
2018-05-21 14:56:49 +01:00
|
|
|
{
|
|
|
|
"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()"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
```
|
2018-06-29 22:37:35 +05:30
|
|
|
|
|
|
|
## Contributing
|
|
|
|
|
|
|
|
1. 🍴 Fork this repo
|
|
|
|
2. 👀️ Follow the contributing guidelines outlined in [Contributing Guidelines](docs/CONTRIBUTING.md).
|
|
|
|
3. 🔧 Make some awesome changes!
|
|
|
|
4. 👉 [Make a pull request](https://github.com/freeCodeCamp/learn/compare)
|
|
|
|
5. 🎉 Get your pull request approved - success!
|
2018-06-29 22:43:50 +05:30
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
Copyright (c) 2018 freeCodeCamp.
|
|
|
|
|
|
|
|
The curricular content in this repo is licensed under the [CC-BY-SA-4.0](LICENSE.md)
|