Skip to content

migrated to learnpack #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 10, 2021
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 @@ -4,6 +4,7 @@
!.gitignore
!.gitpod.yml
!.gitpod.Dockerfile
!learn.json
!bc.json
!README.md

Expand Down
3 changes: 2 additions & 1 deletion .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ FROM gitpod/workspace-full:latest

USER gitpod

RUN npm i jest@24.8.0 breathecode-cli@1.2.73 -g
RUN npm i jest@24.8.0 -g
RUN npm i learnpack -g && learnpack plugins:install learnpack-node@0.0.13
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ports:
onOpen: open-preview
tasks:
- command: >
bc run -l node;
learnpack start
github:
prebuilds:
# enable for the master/default branch (defaults to true)
Expand Down
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,31 @@ Dozens of looping exercises to sharpen your looping skills with for, forEach, ma

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

2. Download this particular exercise using learnpack and `cd` into the folder:

```
$ npm i breathecode-cli -g
$ learnpack download python-beginner-programming-exercises
$ cd python-beginner-programming-exercises
```

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

```sh
$ npm i jest@24.8.0
$ breathecode run
$ npm i jest@24.8.0 -g
$ 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
File renamed without changes.