►
From YouTube: hyper hello world workshop with NodeJS by Tom Wilson
Description
Tom Wilson presents a virtual workshop for the hyper Data Service, this workshop is 1 of 3 workshops showcasing the features of the hyper Data Service API. You can follow along with Tom using your GitHub account.
Here is the workshop repository:
https://github.com/hyper63/workshops-expressjs/tree/master/hello-world
A
Hello
world
for
hyper
api
service
hyper
is
an
api
that
gives
you
access
to
several
primitive
services,
like
data
storage,
search,
cache
and
queue.
In
this
workshop,
we
will
go
through
the
data
service
at
a
very
high
level
kind
of
a
hello
world
level.
How
do
I
get
started
and
how
does
the
api
feel?
My
name
is
tom
wilson
and
let's
go
ahead
and
get
started
here.
I
have
a
github
open
and
I'm
going
to
sign
in
as
kind
of
a
anonymous
user.
A
Hyper
63,
slash
workshops
dash
and
we're
going
to
do
express
js
our
node.js
workshop
and
we're
going
to
do
the
hello
world
one.
So
the
hello
world
will
basically
set
up
an
account
on
hyper
and
then
we'll
use
hyper
to
create
a
mario
character
document
and
to
get
a
mario
character
document.
So
in
this
workshop
we're
building
a
mario
wiki
who
has
characters
and
games
and
we're
gonna
create
the
api
for
that
wiki
and
we're
going
to
create
a
couple
of
endpoints
on
that
api.
A
You
should
be
knowledgeable
about
http
and
json
javascript
we're
using
node.js
in
express
in
this
workshop,
but
hyper.
You
can
use
really
anything
you
want,
because
it's
kind
of
a
rest
api
and
then,
of
course,
you
should
be
familiar
with
get
and
github.
A
So
before
we
get
started,
I'm
going
to
go
ahead
and
launch
a
virtual
machine
in
get
pod
that
will
clone
this
repository
and
give
us
a
starting
point
for
the
workshop,
so
I'll.
Just
click
open
in
gitpod
and
use
my
github
account
and
spin
up
that
virtual
workshop
and
while
that's
running
I'm
going
to
go
and
set
up
an
app
in
the
hyper
dashboard.
So
I'm
going
to
open
a
new
tab
and
type
dashboard.hyper.io.
A
And
it's
going
to
prompt
me
to
log
in
with
github,
so
I'm
going
to
do
that
and
it'll
walk
you
through
the
login
and
I'm
going
to
go
ahead
and
delete
this
app
because
it'll
be
worthwhile
to
start
fresh
with
a
new
application.
A
So
we'll
come
in
to
the
hyper
dashboard
and
you'll.
Have
your
app
add
application
button,
just
click
it
select
your
favorite
name,
honeydew
cloud,
maybe.
A
A
A
Maybe
yes,
that's
better!
Okay,
so
we
want
to
take
that
connection
string
and
add
it
to
the
app
so
first
thing
I'm
going
to
do
is
initialize
the
app
in
the
hello
world
folder
by
just
calling
yarn
or
you
could
call
npm
install
if
you
want
and
then
I'm
going
to
go
ahead
and
create
a
dot
emv
file
and
then
I'm
going
to
add
hyper
equals
and
let's
just
surround
it
by
quotes,
equals
and
then
the
connection
string.
A
So
now,
if
we
go
look
at
our
emv,
we've
got
hyper
and
we've
got
our
connection
string.
So
that's
that's
super
cool.
So
what
we
want
to
do
in
this
workshop
is
again.
We
set
up
our
hyper
development
and
spirit
environment.
So
that's
that's
awesome
and
we
want
to
use
hyper
to
create
a
mario
character
document.
A
A
So
if
we
go
to
our
little
remote
monitor
here,
let's
make
that
public
and
we
can
close
that
down
and
then
well.
We
can
actually
just
click
this
little
globe
here
and
that's
going
to
open
it
in
the
browser,
and
we
can
see
that
if
we
do
a
request
on
the
root
we
get
a
json
document
with
name
equals.
Mario
wiki
api
super
cool.
Now
we've
got
our
server
running.
We
can
minimize
that
down
here
and
then
look
at
this
create
character,
so
the
create
character.
We
want
to
create
this
character.
A
Mario,
this
character
document
in
our
api
and
we've
got
a
file
called
api.
Slash,
create
character.
This
is
an
express
app.
So
if
we
want
to
look
at
the
server,
we
can
see
that
this
is
just
a
basic
express,
app,
nothing
magical
and
we've
just
got
two
endpoints
some
post
api
characters
and
I
get
api
characters
by
id.
So
those
are
the
two
functions
we
want
to
implement
and
they're
in
the
files
create
dash
character
and
get
dash
characters.
A
So
if
we
open
create
character,
we
can
see
that
we've
got
a
function
and
it's
sending
a
not
implemented
message.
So,
while
we're
doing
that,
let's
go
ahead
and
set
up
how
we're
going
to
call
it
and
we're
going
to
use
a
tool
called
hopscotch.io
spelled
with
two
t's
hopscotch.io
and
it's
just
a
simple.
You
know
kind
of
postmen
like
interface
in
the
browser,
and
I
can
grab
this
url
and
paste
it
here
and
do
a
get.
A
So
if
we
go
to
package
json,
we
can
see
that
we've
added
hyper
connect
already
and
we're
going
to
use
that
to
expose
our
hyper
api
in
this
create
character,
js,
so
import
connect
from
hyper
connect
and
now
that
we
have
the
connect,
we
need
to
give
it
our
connection
string.
So
we're
going
to
say,
const
piper
equals
connect,
process.emb
to
grab
the
hyper
connection,
string
from
its
environment
variable
and
then
we're
going
to
instantiate
the
hyper
connect
client
by
calling
open
print
close
print.
A
You
can
have
multiple
instances
in
an
app
of
particular
services,
so
you
could
have
in
in
the
default
is
the
default
instance,
so
you
could
pass
default
in
and
that
would
be
fine,
but
you
could
also
have
multiple
instances
there.
So
we've
got
that
and
now
we
just
need
to
add
our
document.
So
we'll
capture
the
result
and
we'll
call
away
hyper.data.add.
A
A
Okay,
so
that's
it!
That's
all.
We
need
to
add
data
to
hyper.
If
we
go
to
hopscotch
and
we
run
our
post
now,
we
should
get
ok,
true
and
an
id
of
character.
1..
Now
that
we've
got
that
in
the
database,
let's
make
sure
we
can
get
it
out.
So
with
that
we're
going
to
implement,
get
character,
so
we'll
say,
get
character
on
hello
world
and
do
the
exact
same
thing:
import,
connect
from
hyper
connect
and
then
we'll
create
our
hyper
api
by
calling
connect
passing
it.
The
connection
string.
A
So
if
we
look
at
the
readme
now
we
just
did
the
get
character
in
the
workshop
and
here's
a
couple
of
curl
examples
that
you
can
do
or
you
can
use
hopscotch
as
well,
either
way
they
all
work
and
yeah.
Give
that
a
try
have
some
fun
and
then
check
out
our
next
workshop,
where
we'll
go
deeper
into
the
connect
client
for
hyper
thanks.