The following is a more detailed explanation on how to open LearnPack's tutorials locally or in the cloud:
You can learn many things with LearnPack: What do you want to learn? Our most popular tutorials help you learn javascript arrays, react js, how to build API's with Python Flask, etc.
π Here is a curated list of our recommended tutorials.
Each tutorial is a separate GitHub repository. Go to the GitHub repository website and read the README file to understand what the tutorial is about, you may find an exercises
or .learn/exercises` with all the steps and instructions you will be given through the tutorial. We also have this curate list of tutorials from 4Geeks Academy with a UI/UX that makes it a lot easier to pick.
The easiest way to run a LearnPack tutorial is to initiate it using our click-and-learn bridge, if you will like to do it yourself (without any magic) read the following guide:
π Skip this section if you want to run locally on your computer
We picked the Looping with Javascript tutorial for this explanation.
https://gitpod.io/#<tutorial repository url>
Please note that <tutorial repository url>
needs to be replaced with the github repository URL of the tutorial you want to open, for example:
https://gitpod.io/#https://github.com/4GeeksAcademy/javascript-arrays-exercises-tutorial
π Alternatively You can use the Gitpod expension that makes the process very similar to Codespaces by adding a button like this into the repository website.
To use LearnPack locally, you must install Node v20 (or more) and you may also have to install other things depending on the particular tutorial needs.
π We recommend to install Node using NVM, here is a guide on how to install NVM on your computer.
1npm i -g @learnpack/learnpack
Open the terminal and run the git clone command with your repository URL. For example, with the Javascript tutorial:
1git clone https://github.com/4GeeksAcademy/javascript-arrays-exercises-tutorial.git
A directory with the name of the tutorial will be created; enter it with the cd command:
1cd javascript-arrays-exercises-tutorial
When you installed LearnPack globally, a new option was added to your computer's commands, now you can execute:
1learnpack start
In the directory of a LearnPack tutorial, and you're done.
Note: If LearnPack detects that not installed plugins are needed for your tutorial, LearnPack will install them. Then just restart with learnpack start
Also, if you have VSCode on your computer, install the Learnpack extension. Once you are inside a LearnPack tutorial in VSCode, if it is the first time you start, the LearnPack extension will execute learnpack start for you.