Skip to content

Commit 41933a9

Browse files
authored
Merge pull request 4GeeksAcademy#4 from learnpack/learnpack
migrated to learnpack
2 parents 36c5db8 + 7e2afd7 commit 41933a9

File tree

4 files changed

+28
-16
lines changed

4 files changed

+28
-16
lines changed

.gitignore

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

10-
!/assets
1111
!/exercises
1212
!/exercises/*
1313

14-
*.pyc
15-
__pycache__/
16-
.pytest_cache/
17-
18-
!/.breathecode
19-
/.breathecode/**
20-
!/.breathecode/resets
21-
!/.breathecode/resets/**
14+
!/.learn
15+
/.learn/**
16+
!/.learn/resets
17+
!/.learn/resets/**
18+
!/.learn/assets
19+
!/.learn/assets/**

.gitpod.Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
FROM gitpod/workspace-full
2+
23
USER gitpod
4+
35
RUN pip3 install pytest==4.4.2 pytest-testdox mock
4-
RUN npm i learnpack@0.1.14 -g && learnpack plugins:install learnpack-python@0.0.35
6+
RUN npm i learnpack@0.1.19 -g && learnpack plugins:install learnpack-python@0.0.35
7+

README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,31 @@ 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+
43+
```
44+
$ npm i learnpack -g
45+
$ learnpack plugins:install learnpack-python
46+
```
47+
48+
2. Download this particular exercise using learnpack and `cd` into the folder:
49+
4250
```
43-
$ npm i breathecode-cli -g
51+
$ learnpack download python-http-requests-api-tutorial-exercises
52+
$ cd python-http-requests-api-tutorial-exercises
4453
```
4554

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

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

5059
```sh
5160
$ pip install pytest==4.4.2 mock pytest-testdox
52-
$ breathecode run
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+
5566
## How are the exercises organized?
5667

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

learn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
"version": "1.0.70"
77
}
88
}
9-
}
9+
}

0 commit comments

Comments
 (0)