Coder Social home page Coder Social logo

aruprakshit / bubble-tutorial-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stevenpslade/bubble-tutorial-api

0.0 1.0 0.0 414 KB

Build fun and beautiful tutorials for websites with one script and account.

Ruby 53.14% HTML 1.10% CSS 2.02% JavaScript 43.74%

bubble-tutorial-api's Introduction

Unnamed Bubble Tutorial (Rails API)

Bubble Tutorials allows users to put beautiful, engaging tutorials on their website.

How It Works

  • User signs up on our admin site and receives a script to copy on to their website
  • User can create tutorials with steps/content such as number of items in tutorial, content, actions, etc.
  • This script communications with our Rails API, which sends the tutorial data to the site
  • The script on the user's website displays the tutorials

Script repo (in-progress) can be found here.

This project is still in development. To see what's going on in my head and project TODOs visit my public Trello board.

Example Output

http://api.stevenlocal.com:3000/v1/sites/1/tutorials

{
  "data": [
    {
      "id": "1",
      "type": "tutorials",
      "attributes": {
        "name": "Welcome Tutorial",
        "active": true,
        "page_url": "example.com/welcome",
        "skippable": false,
        "show_steps": true
      },
      "relationships": {
        "user": {
          "data": {
            "id": "1",
            "type": "users"
          }
        },
        "site": {
          "data": {
            "id": "1",
            "type": "sites"
          }
        },
        "tutorial_items": {
          "data": [
            {
              "id": "1",
              "type": "tutorial_items"
            },
            {
              "id": "2",
              "type": "tutorial_items"
            },
            {
              "id": "3",
              "type": "tutorial_items"
            }
          ]
        }
      }
    }
  ],
  "included": [
    {
      "id": "1",
      "type": "tutorial_items",
      "attributes": {
        "title": "step1",
        "content": "welcome to this site.",
        "active": true,
        "css_selector": ".welcome-banner",
        "order": 1,
        "created_at": "2017-05-07T06:05:48.890Z"
      },
      "relationships": {
        "tutorial": {
          "data": {
            "id": "1",
            "type": "tutorials"
          }
        }
      }
    },
    {
      "id": "2",
      "type": "tutorial_items",
      "attributes": {
        "title": "step2",
        "content": "click here to signup...",
        "active": true,
        "css_selector": "#signup",
        "order": 2,
        "created_at": "2017-05-07T06:05:48.892Z"
      },
      "relationships": {
        "tutorial": {
          "data": {
            "id": "1",
            "type": "tutorials"
          }
        }
      }
    },
    {
      "id": "3",
      "type": "tutorial_items",
      "attributes": {
        "title": "step3",
        "content": "give us your info!",
        "active": true,
        "css_selector": "#newsletter",
        "order": 3,
        "created_at": "2017-05-07T06:05:48.895Z"
      },
      "relationships": {
        "tutorial": {
          "data": {
            "id": "1",
            "type": "tutorials"
          }
        }
      }
    }
  ]
}

bubble-tutorial-api's People

Contributors

stevenpslade avatar

Watchers

 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.