Giter Site home page Giter Site logo

Write Tutorial about horizon-docs HOT 7 OPEN

danielmewes avatar danielmewes commented on August 15, 2024
Write Tutorial

from horizon-docs.

Comments (7)

mglukhovsky avatar mglukhovsky commented on August 15, 2024

@danielmewes, so far we have the Getting Started guide in the Horizon repo.

We need to add this to the docs repo.

from horizon-docs.

danielmewes avatar danielmewes commented on August 15, 2024

Oh the "Getting Started" guide is quite nice.

I think the original intention behind the "tutorial" was something a bit more extensive where we write a full application. That's probably going to be more work.

I think we should put the current "Getting Started" guide into the quickstart. It looks like quickstart used to be the same as the Getting Started guide, but the latter has since been extended?

from horizon-docs.

danielmewes avatar danielmewes commented on August 15, 2024

I'd like to check this with @chipotle though, since there might have been some different intentions behind these documents or things he has improved in the quickstart that aren't reflected in the Getting Started guide.

from horizon-docs.

chipotle avatar chipotle commented on August 15, 2024

They're meant to be similar documents, but I didn't intend to put the OAuth stuff in the QuickStart documentation, instead linking to the authentication document for that. Most of what's in Getting Started other than that should be in QuickStart already, although arranged differently and with some stylistic changes.

from horizon-docs.

danielmewes avatar danielmewes commented on August 15, 2024

It looks like only the "Getting started with Horizon client" section from https://github.com/rethinkdb/horizon/blob/next/GETTING-STARTED.md wasn't in the docs yet.
It is now at https://github.com/rethinkdb/horizon-docs/blob/master/getting-started.md

That's enough for the 1.0 launch.

I think we should still have a more extensive tutorial later.

from horizon-docs.

mglukhovsky avatar mglukhovsky commented on August 15, 2024

@segphault is working on a basic tutorial that covers permissions and building a basic app.

@segphault: do you think the [Getting started] guide would overlap with the outline for the tutorial you're writing? Could you post the outline you're planning?

from horizon-docs.

segphault avatar segphault commented on August 15, 2024

There are some differences in scope between the tutorial that I'm working on and the Getting Started guide. The tutorial will include:

  • Building a social bookmark application with these features:
    • Users can add/edit/remove their own bookmarks
    • Users can share bookmarks into a public stream
    • Unauthenticated users can see public bookmarks
  • It uses the following Horizon capabilities:
    • Authentication
      • hasAuthToken
      • currentUser
      • authEndpoint redirect
    • Permissions
      • Templates and validators that do the following:
        • Allow unauthenticated users to fetch public data
        • Ensure private data is only accessible to its owner
        • Allow users to update and delete their own data
    • Queries
      • findAll with order/limit
      • store
      • replace
      • remove
  • Tutorial will additionally cover:
    • Writing the schema.toml and applying it from the command line
    • Using the auth methods and queries in a VueJS app
  • The tutorial will not cover:
    • Step-by-step walkthrough of installing horizon and using hz init
    • Complete coverage of the relevant options in config.toml setup
    • Steps for generating and configuring the OAuth provider token

The TL;DR is that the tutorial is an application-focused introduction to using Horizon with permissions and authentication. It doesn't cover the basic setup, which I think is better left for documentation.

from horizon-docs.

Related Issues (20)

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.