Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
!.gitpod.yml
!.gitpod.Dockerfile
!bc.json
!learn.json
!README.md
!README.*.md

Expand Down
2 changes: 1 addition & 1 deletion .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@


FROM gitpod/workspace-full:latest

USER gitpod

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

1 change: 1 addition & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ports:
- port: 3000
onOpen: open-preview
tasks:

- command: >
learnpack start;
github:
Expand Down
24 changes: 18 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,32 @@ These exercises were built in collaboration, we need you! If you find any bugs o

## 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 breathecode-cli -g
$ npm i learnpack -g
$ learnpack plugins:install learnpack-python
```

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.
2. Download this particular exercise using learnpack and `cd` into the folder:

```
$ learnpack download master-python-programming-exercises
$ cd master-python-programming-exercises
```

3) Start the tutorial/exercises by running the following command from the root of the project:
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 at the same level were your bc.json file is:

```sh
$ pip install pytest==4.4.2 mock pytest-testdox
$ breathecode run
$ RUN pip3 install pytest==4.4.2 pytest-testdox mock
$ 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
2 changes: 2 additions & 0 deletions learn.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
"difficulty": "easy",
"video-solutions": false,
"graded": true

}