Coder Social home page Coder Social logo

first-lab-ruby-learn-cli-nitrous-q-000's Introduction

Solving your first Lab

Objectives

  1. Open a lab by clicking "Open" on this page on Learn.co.
  2. Run the lab's tests with the learn CLI command.
  3. Make a change to your local copy of this lab.
  4. Pass the tests using the learn CLI command.
  5. Submit the passing lab with the learn submit CLI command.

Instructions

This lab is just about practicing the lab workflow on Learn using the learn CLI.

  1. Click on the "Open" link on the lab toolbar above.

Open

After you click on this, a new tab should open with your Nitrous container. At the same time, behind the scenes we are forking the lab and cloning it to your container.

If you do not see an "open" link on the toolbar, this might mean that your Nitrous container wasn't properly set up. Please use the Ask a Question tool in Learn and we'll help you out!

new-tab

  1. After the lab is opened, your Nitrous console should already be in the lab's directory. You may need to click through the file 1 or 2 levels deep to find the labs' files in the "labs" directory.

ready-work

This setup—your console open in the lab's directory and the lab directory open in the file browser—that's the state you want to be in when working on a lab on Learn. It means you're ready.

  1. In the console, run the test suite by typing learn and hitting enter. You'll see something similar to:

lab-fail

You can see your test is currently failing, which is fine, we haven't done any work yet, so it makes sense.

The failure reads: Make sure you have added a new file or edited edit-me.txt

  1. To pass this lab, either make any change to the content of edit-me.txt or create a new file.

You can open edit-me.txt and you'll see it is currently empty. Add anything to that file, save the file, and then run learn, everything should pass.

You can also pass this lab by creating a new file. From your console, you can run touch new-file to create a new file. If a new file is added to this lab, when you run learn, your tests should pass.

lab-success

  1. Once your local tests are passing, you can submit this lab by running learn submit from your terminal.

learn-submit

You should see this lab pass on Learn.co. Congratulations! You've just solved your first lab.

View this lesson on Learn.co

View First Lab on Learn.co and start learning to code for free.

first-lab-ruby-learn-cli-nitrous-q-000's People

Contributors

adrianbraca avatar annjohn avatar aviflombaum avatar brucelee804 avatar frahman5 avatar matbalez avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.