diff --git a/.gitignore b/.gitignore index 667e2ad2..f3ca55f4 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ !.gitpod.yml !.gitpod.Dockerfile !bc.json +!learn.json !README.md !README.*.md diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 87edd3b7..d6b7b30f 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -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 + diff --git a/.gitpod.yml b/.gitpod.yml index e75ca9cd..8963f46c 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -5,6 +5,7 @@ ports: - port: 3000 onOpen: open-preview tasks: + - command: > learnpack start; github: diff --git a/README.md b/README.md index 7bc52532..16a940fd 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/learn.json b/learn.json index 31b7c454..e88029f4 100644 --- a/learn.json +++ b/learn.json @@ -8,4 +8,6 @@ "difficulty": "easy", "video-solutions": false, "graded": true + } +