Skip to content

Commit 8c3894c

Browse files
authored
Merge pull request #10 from 4GeeksAcademy/learnpack
migrated to learnpack
2 parents 34db2bf + 1ba5fab commit 8c3894c

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
!.gitignore
55
!.gitpod.yml
66
!.gitpod.Dockerfile
7+
!learn.json
78
!bc.json
89
!README.md
910

.gitpod.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ FROM gitpod/workspace-full:latest
22

33
USER gitpod
44

5-
RUN npm i jest@24.8.0 breathecode-cli@1.2.73 -g
5+
RUN npm i jest@24.8.0 -g
6+
RUN npm i learnpack -g && learnpack plugins:install learnpack-node@0.0.13

.gitpod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ports:
66
onOpen: open-preview
77
tasks:
88
- command: >
9-
bc run -l node;
9+
learnpack start
1010
github:
1111
prebuilds:
1212
# enable for the master/default branch (defaults to true)

README.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,31 @@ Dozens of looping exercises to sharpen your looping skills with for, forEach, ma
2525

2626
## Local Installation
2727

28-
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
28+
1. Install learnpack, the package manager for learning tutorials and the html compiler plugin for learnpack, make sure you also have node.js 12+:
29+
30+
```
31+
$ npm i learnpack -g
32+
$ learnpack plugins:install learnpack-python
33+
```
34+
35+
2. Download this particular exercise using learnpack and `cd` into the folder:
36+
2937
```
30-
$ npm i breathecode-cli -g
38+
$ learnpack download python-beginner-programming-exercises
39+
$ cd python-beginner-programming-exercises
3140
```
3241

33-
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.
42+
Note: Once you finish downloading, you will find a "exercises" folder that contains all the exercises within.
3443

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

3746
```sh
38-
$ npm i jest@24.8.0
39-
$ breathecode run
47+
$ npm i jest@24.8.0 -g
48+
$ learnpack start
4049
```
4150

51+
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.
52+
4253
## How are the exercises organized?
4354

4455
Each exercise is a small react application containing the following files:

bc.json renamed to learn.json

File renamed without changes.

0 commit comments

Comments
 (0)