Skip to content

documentation: console dpd invocations don't work at / but they do at /dashboard #853

@LiamInJapan

Description

@LiamInJapan

As title says.

In:
http://docs.deployd.com/docs/getting-started/your-first-api.html

In the section explaining how to use the javascript console commands, errors occur if you invoke dpd at http://localhost:2403 (but it works if you invoke at http://localhost:2403/dashboard

Context

It's a minor issue, but since it's in getting started documentation I feel it should be fixed. It's probably a very easy documentation fix

Expected Behavior

It works

Actual Behavior

VM1191:1 Uncaught ReferenceError: dpd is not defined
at :1:1

Possible Fix

I think it's just a documentation fix - fix it so the docs say to go to /dashboard

Steps to Reproduce

  1. Open http://localhost:2403/ in Chrome
  2. View->Developer->Javascript console
  3. dpd.things.get(console.log);
  4. Get the following error:

VM1191:1 Uncaught ReferenceError: dpd is not defined
at :1:1

  1. Repeat at http://localhost:2403/dashboard no error

Context

Not a huge amount, was just a little hiccup in going through the "getting started" guide

Your Environment

  • Deployd Version (deployd -V): 2.0.2 <--- also note that this template has a spelling error. It should be dpd -V
  • Node version (node -v): v6.9.4
  • Operating System and version: macOS 10.12.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions