Giter Site home page Giter Site logo

qr-code-rails's Introduction

QR Code Rails

In this project, we'll generate QR codes for our users and display them in the browser.

Target

Here is a target to work towards.

Anatomy of a URL

The full anatomy of a URL (parameters are also known as query strings):

The anatomy of a URL from MDN

Read more at MDN.

Tasks

Implement the following four URLs:

  • /text

    This URL should accept a query string of the form:

    ?content=Your text goes here
    

    The value provided under content key of the query string should be encoded in a QR code as plain text.

  • /url

    This URL should accept a query string of the form:

    ?page=https://www.wikipedia.org
    

    The value provided under the page key of the query string should be encoded in a QR code as a URL (which is just plain text that begins with http or https).

  • /wifi

    This URL should accept a query string of the form:

    ?ssid=Your network name&pw=secret password
    

    The values provided under the ssid and pw keys should be encoded in a QR code as a wifi network. For example:

    WIFI:T:WPA;S:Your network name;P:secret password;;
    
  • /sms

    This URL should accept a query string of the form:

    ?phone=9876543210&message=Hi Alice! It's me,
    

    The values provided under the phone and message keys should be encoded in a QR code as a text message: For example:

    SMSTO:9876543210:Hi Alice! It's me, 
    

qr-code-rails's People

Contributors

raghubetina avatar bpurinton 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.