Explore our extensive collection of courses designed to help you master various subjects and skills. Whether you're a beginner or an advanced learner, there's something here for everyone.


Learn live

Join us for our free workshops, webinars, and other events to learn more about our programs and get started on your journey to becoming a developer.

Upcoming live events

Learning library

For all the self-taught geeks out there, here is our content library with most of the learning materials we have produced throughout the years.

It makes sense to start learning by reading and watching videos about fundamentals and how things work.

Search from all Lessons

LoginGet Started
← Back to Lessons
Weekly Coding Challenge

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 Challenge
Podcast: Code Sets You Free

A tech-culture podcast where you learn to fight the enemies that blocks your way to become a successful professional in tech.

Listen the podcast
Edit on Github

Learnpack Configuration

The learn.json
Compiler Plugins

The learn.json

The learn.json file is where all the configurations from the teacher should be set. These are the properties that you can change from the configuration:

  • port: The port where the instructions will be hosted. (Default: 3000).

  • editor: Editor will be the object with all the editor options, which are the following:

    • mode: The mode could be extension (when using the vscode plugin) or preview (When working locally without vscode).

    • agent: The agent is where you are going to show the instructions, it could be vscode, os.

    • version: This is related to the UI version, by default, it will use the newest version of the UI, anyway you can use an older version.

  • dirPath: The path to the configuration directory, by default this directory will be named “.learn” and will be located at the root of the project.

  • configPath: The path to the configuration file, this file will be named learn.json by default.

  • outputPath: The path to the folder where the output of the exercises will be located. It will be .learn/dist by default.

  • publicPath: The path of the domain where the result will be hosted. Its value will be /preview by default.

  • publicUrl: The URL where the instructions will be hosted, its value depends on the agent that you are using.

  • language: The programming language used in the tutorial. It could be set to auto if you are using many programming languages, LearnPack will auto-detect the language.

  • grading: The grading mode of the tutorial. You can see more about grading modes here: Grading Modes

  • exercisesPath: The path to the folder where the exercises are located. They could be located at the root of the project.

  • disabledActions: This will be an array with the actions that you would like to disable, i.e.: You can disable the option of having a test on your tutorial while you fix a bug. You can disable the following actions: Build, Reset, Test and Tutorial.

  • slug: The name of the tutorial. It is automatically created when you create the tutorial, but you can also change it later.

  • title: The title of the tutorial.

  • preview: It’s an image url that can be used for the introduction of your exercises.

  • repository: The link where the repository of the tutorial is hosted.

  • description: The description of the tutorial.

  • duration: The estimated time that it should take you to finish the tutorial.

  • difficulty: The difficulty of the tutorial.

  • autoStart: It will allow you to decide if LearnPack should start automatically when opening the repository at vscode.

  • video: An object containing a property intro, that is an object that has as keys languages and as values an url for an intro video for the tutorial in each language you want. For example:

1"video": { 2 "intro": { 3 "es": "www.example.url", 4 "en": "www.example_video.url" 5 } 6}

😳 Disclaimer: The next features are still a work in progress! Bear with us while we still develop them for you.

  • bugs: Add a link where the learners can report bugs found in your tutorial.

  • webpackTemplate: It will allow creators to have their own webpack template.

Compiler Plugins

LearnPack has some plugins that allow you to compile and test tutorials in different languages. The languages covered by LearnPack so far are: python, javascript, html, css, dom, react.

These are the plugins for the named languages:

  • @learnpack/html

  • @learnpack/node

  • @learnpack/python

  • @learnpack/dom

  • @learnpack/react

PS: When using one of these languages with LearnPack, you have to install the corresponding plugin to compile and test the exercises. This is how you install the plugins:

1$ learnpack plugins:install <name-of-plugin>

For example, let's install @learnpack/html:

1learnpack plugins:install @learnpack/html

But currently LearnPack is able to install the plugin by itself based on the exercises you've added. 👀

Gitpod Integration

Gitpod is an amazing tool that can help your tutorial’s user experience by allowing a very simple way to use Learnpack.

Using Gitpod on your tutorial will allow the learners to access and start the tutorials only by clicking once.

Codespaces Integration

Codespaces provides a powerful, customizable, and scalable cloud development environment. LearnPack can run seamlessly within a Codespace, allowing learners to access and start tutorials with minimal setup. This integration ensures that all necessary dependencies and tools are pre-configured, making the learning process smooth and efficient.

By leveraging Codespaces, users can enjoy a fully featured development environment directly in their browser, which is especially beneficial for tutorials that require specific configurations or extensive toolchains. This integration simplifies the initial setup process, reduces potential errors, and allows learners to focus more on learning rather than configuring their development environment.

This is an example codespaces configuration:


1{ 2 "name": "Node.js", 3 "image": "", 4 "customizations": { 5 "vscode": { 6 "settings": { 7 "editor.defaultFormatter": "esbenp.prettier-vscode", 8 "workbench.editorAssociations": { 9 "*.md": "vscode.markdown.preview.editor" 10 } 11 }, 12 "extensions": ["learn-pack.learnpack-vscode"] 13 } 14 }, 15 16 "onCreateCommand": "npm i jest@24.8.0 -g && npm i @learnpack/learnpack@2.1.39 -g && learnpack plugins:install @learnpack/node@1.1.5 && learnpack plugins:install @learnpack/html@1.1.2" 17} 18