Skip to content

Commit

Permalink
migrated to learnpack
Browse files Browse the repository at this point in the history
  • Loading branch information
ElviraQDP committed Feb 10, 2021
1 parent 34db2bf commit 1ba5fab
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
!.gitignore
!.gitpod.yml
!.gitpod.Dockerfile
!learn.json
!bc.json
!README.md

Expand Down
3 changes: 2 additions & 1 deletion .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ FROM gitpod/workspace-full:latest

USER gitpod

RUN npm i [email protected] [email protected] -g
RUN npm i [email protected] -g
RUN npm i learnpack -g && learnpack plugins:install [email protected]
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ports:
onOpen: open-preview
tasks:
- command: >
bc run -l node;
learnpack start
github:
prebuilds:
# enable for the master/default branch (defaults to true)
Expand Down
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,31 @@ Dozens of looping exercises to sharpen your looping skills with for, forEach, ma

## Local Installation

1) Make sure you have the [breathecode-cli](https://github.com/breatheco-de/breathecode-cli) installed and `node.js` version 10+ and python version 3+. This is the command to install the breathecode-cli
1. Install learnpack, the package manager for learning tutorials and the html compiler plugin for learnpack, make sure you also have node.js 12+:

```
$ npm i learnpack -g
$ learnpack plugins:install learnpack-python
```

2. Download this particular exercise using learnpack and `cd` into the folder:

```
$ npm i breathecode-cli -g
$ learnpack download python-beginner-programming-exercises
$ cd python-beginner-programming-exercises
```

2) Clone or download this repository. Once you finish downloading, you will find a new folder with a subdirectory "exercises" that contains all the exercises within.
Note: Once you finish downloading, you will find a "exercises" folder that contains all the exercises within.

3) Start the tutorial/exercises by running the following command from the root of the project:
3. Start the tutorial/exercises by running the following command at the same level were your bc.json file is:

```sh
$ npm i [email protected]
$ breathecode run
$ npm i [email protected] -g
$ learnpack start
```

Note: The exercises have automatic grading but its very rigid and string, my recomendation is to ignore the tests and use them only as a recomendation or you can get frustrated.

## How are the exercises organized?

Each exercise is a small react application containing the following files:
Expand Down
File renamed without changes.

0 comments on commit 1ba5fab

Please sign in to comment.