Every week, we pick a real-life project to build your portfolio and get ready for a job. All projects are built with ChatGPT as co-pilot!
Start the ChallengeA tech-culture podcast where you learn to fight the enemies that blocks your way to become a successful professional in tech.
Listen the podcastLearnPack
There are two use cases that you can take advantage of when using LearnPack.
The first one is as a creator of interactive tutorials, and the second use case is as a learner, where you will be consuming interactive tutorials created by the creators. Find LearnPack at npm, click to download the package: click here.
✋ Make sure you have node installed before going to the next step!)
To create your first tutorial, you have to follow these steps:
$ npm install @learnpack/learnpack -g
.$ mkdir name-of-tutorials
.$ learnpack init
.First, it will ask you the grading type (Grading Tutorials) you want for your tutorial:
A) Incremental: In this type of exercise you can’t go to the next exercise until you pass the test of the current one. It is incremental, so further exercises require the knowledge of previous exercises.
B) Isolated: Each exercise is independent so you can go to any exercise in the order you prefer. The latest exercises don’t need earlier exercises’ knowledge.
C) No Grading: These exercises aren’t graded, therefore they don’t have tests.
4. Next, it will ask for the tutorial’s title.
5. It should ask for the description after the title.
Now you have to add the folder of each of the exercises that you are going to add to your tutorial with a structure similar to the one created by the command
$ learnpack init
.
It should have the README.md
file, the test
file, and the entry file (usually called app.<ext>
where the extension (ext
) depends on the learning language. For example, if we are building a Python tutorial, it will be app.py
(this name can be overridden on the configuration options.
The last two files depend on the language you are using.
To install the LearnPack CLI, run the npm install @learnpack/learnpack -g.
Install the tutorial you want to use by downloading the repository code, for example: You can use the git clone
command to download these exercises:
1$ git clone https://github.com/4GeeksAcademy/javascript-beginner-exercises-tutorial
learnpack plugins:install learnpack-node
.🔥 Here is more information about LearnPack Compiler Plugins.
After installing everything, the last step to start using LearnPack, is running the command learnpack start Ready to start learning!