Skip to content

Commit 506232c

Browse files
committed
migrated to learnpack
1 parent bb1e695 commit 506232c

File tree

5 files changed

+29
-17
lines changed

5 files changed

+29
-17
lines changed

.gitignore

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,15 @@
55
!.gitpod.yml
66
!.gitpod.Dockerfile
77
!bc.json
8+
!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,3 +1,6 @@
11
FROM gitpod/workspace-full
2+
23
USER gitpod
3-
RUN pip3 install pytest==4.4.2 pytest-testdox mock && npm i breathecode-cli@1.2.70 -g
4+
5+
RUN npm i jest@24.8.0 -g
6+
RUN npm i learnpack -g && learnpack plugins:install learnpack-html

.gitpod.yml

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

99
# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/config-start-tasks/
1010
tasks:
11-
- command: bc run
11+
- command: learnpack start

README.md

Lines changed: 17 additions & 6 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
51-
$ pip install pytest==4.4.2 mock pytest-testdox
52-
$ breathecode run
60+
$ npm i jest@24.8.0 -g
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:

bc.json renamed to learn.json

File renamed without changes.

0 commit comments

Comments
 (0)