Skip to content

Commit 976fc4e

Browse files
authored
Merge pull request #10 from ElviraQDP/learnpack
migrated to learnpack
2 parents d672362 + a498ef7 commit 976fc4e

File tree

5 files changed

+23
-7
lines changed

5 files changed

+23
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
!.gitpod.yml
66
!.gitpod.Dockerfile
77
!bc.json
8+
!learn.json
89
!README.md
910
!README.*.md
1011

.gitpod.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

2-
32
FROM gitpod/workspace-full:latest
43

54
USER gitpod
65

76
RUN pip3 install pytest==4.4.2 pytest-testdox mock
87
RUN npm i learnpack@0.0.96 -g && learnpack plugins:install learnpack-python@0.0.34
8+

.gitpod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ports:
55
- port: 3000
66
onOpen: open-preview
77
tasks:
8+
89
- command: >
910
learnpack start;
1011
github:

README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,32 @@ These exercises were built in collaboration, we need you! If you find any bugs o
3838

3939
## Local Installation
4040

41-
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
41+
1. Install learnpack, the package manager for learning tutorials and the html compiler plugin for learnpack, make sure you also have node.js 12+:
42+
4243
```
43-
$ npm i breathecode-cli -g
44+
$ npm i learnpack -g
45+
$ learnpack plugins:install learnpack-python
4446
```
4547

46-
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.
48+
2. Download this particular exercise using learnpack and `cd` into the folder:
49+
50+
```
51+
$ learnpack download master-python-programming-exercises
52+
$ cd master-python-programming-exercises
53+
```
4754

48-
3) Start the tutorial/exercises by running the following command from the root of the project:
55+
Note: Once you finish downloading, you will find a "exercises" folder that contains all the exercises within.
56+
57+
3. Start the tutorial/exercises by running the following command at the same level were your bc.json file is:
4958

5059
```sh
51-
$ pip install pytest==4.4.2 mock pytest-testdox
52-
$ breathecode run
60+
$ RUN pip3 install pytest==4.4.2 pytest-testdox mock
61+
$ learnpack start
5362
```
5463

64+
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.
65+
66+
5567
## How are the exercises organized?
5668

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

learn.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@
88
"difficulty": "easy",
99
"video-solutions": false,
1010
"graded": true
11+
1112
}
13+

0 commit comments

Comments
 (0)