Giter Site home page Giter Site logo

learnyourails's Introduction

Learn You Rails

LearnYouRails is an interactive course for learning Ruby On Rails.

Inspired by NodeSchool (learnyounode,...)

How to run

To run LearnYouRails, you need to config system path to this folder, for example:

nano ~/.bash_profile
export PATH=$PATH:"~/Code/learnyourails"
source ~/.bash_profile

Then you can run LearnYouRails anywhere via Terminal, to see challenge content:

railsme

or

railsme challenge

To verify your challenge submission:

railsme verify

How to create challenge

The challenges are stored in challenges folder. In this folder, we have the challenge number (01, 02, 03,...)

Each challenge has 2 files:

  • challenge.txt: contains content of the challenge
  • verify.txt: contains the verify rules for this challenge

Challenge Content

The challenge content is a simple text file, support some markup color:

  • <red></red>: Red color
  • <yellow></yellow>: Yellow color
  • <blue></blue>: Blue color
  • <cyan></cyan>: Green color
  • <green></green>: Green color
  • <light></light>: Make the color lighter
  • <u></u>: Underline

Verify Rules

The verify rules contains 2 parts:

  • Rule header: The first line of the rule file, define type of rule
  • Rule check: Next lines define the checking condition for the rule

Implemented rules:

  • @run: Run the command, then use @output to check the output
  • @file_check: Check the folder struct with @file and @folder

learnyourails's People

Contributors

huytd avatar

Watchers

 avatar James Cloos 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.