►
From YouTube: Hyper Connect Workshop NodeJS
Description
In this workshop, you will learn about hyper connect and create an update, remove and list endpoints for the Mario Wiki API.
Github Repository:
https://github.com/hyper63/workshops-nodejs
A
Hello
welcome
to
the
hyper
connect
workshop.
This
is
part
two
of
a
three-part
data
service
series
of
hyper
workshops
in
this
workshop,
we'll
dive
into
the
hyper
connect,
client
and
we'll
implement
kind
of
the
rest
of
our
crud
features
for
our
mario
wiki
api.
We'll
do
an
update,
a
remove
and
a
list,
and
this
will
help
you
get
a
better
idea
of
how
to
use
hyperconnect
as
well
as
how
to
work
with
the
hyper
data
service.
A
In
this
case,
we'll
use
our
data
service,
but
basically
the
whole
api
is
rest,
so
you
could
use
any
language
to
connect
to
it,
but
we
wanted
to
really
make
it
easier
for
our
javascript
slash,
typescript
community.
So
we
have
this
hyperconnect
client,
and
if
you
want
to
learn
more
about
the
hyperconnect
client,
you
can
go
to
docs
and
I'll.
A
Add
that
to
the
screen:
https
docs,
dot,
hyper
dot,
io,
slash
cloud,
slash,
hyper
connect
and
it
gives
you
some
documentation
on
how
to
install
hyper
connect
and
some
of
the
apis
for
hyperconnect
cool,
so
to
get
started.
We're
going
to
be
using
hyper.
So
you
need
an
account
on
hyper,
so
you
will
want
to
go
to
dashboard.hyper.io.
A
A
You
get
three
free
apps
and
I've
created
one
app
from
the
hello
world
and
open
that
up
and
the
biggest
thing
is
keys.
So
we
want
to
be
on
the
keys
tab
and
we
want
to
grab
our
connection
string
and
just
hit
the
icon
over
to
the
right
to
copy
that
connection
string
so
that
we
can
use
that
in
our
workshop.
A
So
now
that
we
have
that,
we
want
to
launch
a
github
a
get
pod
instance
of
our
workshop
repository
and
in
order
to
do
that,
what
you
want
to
do
is
you
want
to
in
a
new
tab,
type
getpod.io
pound
and
then
the
repository
that
you
want
to
use.
In
our
case
we're
going
to
do
github,
hyper
63
workshops
dash
node.js
right.
A
Folder
data
dash
connect
and
we
want
to
take
that
copied
connection
string
that
we
made
and
we'll
create
a
new
file,
dot
emv
file
and
in
that
new
file,
we're
going
to
type
hyper
equals
and
we're
going
to
paste
that
connection
string
into
this
dot.
Emv
file,
the
dot
emv
file
will
load
our
environment
variables
for
our
development
environment
so
that
we
can
securely
connect
to
our
hyper
data
service.
A
A
So
now
what
we
want
to
do
is
update
a
document.
So
if
you
followed
the
hello
world
workshop,
you
should
already
have
a
few
character
documents
in
your
database.
I
think
I
have
one
so
I'm
going
to
make
sure
by
doing
localhost,
3000,
curl,
localhost,
3000,
api
characters,
character-1.
A
A
A
A
Character
in
nintendo
universe,
cool,
okay,
so
we'll
close
our
json
document
and
add
a
single
quote
and
then
run
this
and
we
get
back
not
implemented
because
we
haven't
implemented
the
code
to
make
this
work.
A
We
need
to
give
it
the
id
and
the
document,
so
we're
going
to
say,
request,
dot,
rams,
dot
id,
because
it's
passed
in
this
url
string
down
here
right
and
then
we're
going
to
give
it
the
document
which
comes
in
as
request
dot
body
like
that,
then
we're
just
going
to
return
the
result
cool
all
right.
We've
got
that.
A
The
next
thing
we
want
to
do
is
the
remove
character,
so
we're
going
to
remove
a
character
by
going
to
the
remove
character.js
file
and
bringing
in
hyper
again
so
import
connect
from
hyper
connect
and
then
we'll
create
a
hyper
instance.
A
A
A
All
right
now
that
we've
implemented
the
update
and
the
remove
feature
next
is
to
update
or
to
implement
the
list
characters
feature
and
to
do
that,
we'll
go
into
the
list,
characters
file
and
we
will
import
hyper
connect.
So
we'll
import
connect
from
hyper
connect
and
then
we
will
create
our
hyperinstance
by
calling
connect
and
passing
in
the
environment.
A
A
So
if
we
send
the
result
to
the
client
and
let's
make
sure
that
we're
running
our
service,
so
we'll
say
yarn
start
and
we'll
open
up
the
new
terminal
here
and
we'll
say:
curl
localhost,
3000,
api
characters
that
and
boom
there
we
go.
We
got
a
ok,
true
and
then
our
docs
node
and
it
returned
all
our
characters.
So
if
we
wanted
just
to
return
just
the
array,
we
could
say
results:
dot,
dot,
docs
that
and
that
returns
just
our
character
array.
A
One
way
to
do
that
is
we
get
all
the
docs
from
the
data
service
and
then
we
just
call
a
filter
and
then
test
if
doc,
dot
type
equals
character
that
and
then
that
would
give
us
all
the
characters.
Now
we
may
want
to
filter
on
the
database
using
the
list
command.
We
can
do
a
couple
of
things
because
we're
prefixing
our
id
with
character
for
all
the
character
type
documents.
A
We
can
do
a
start
key
and
an
end
key,
so
we
can
say
start
key
equals
character
like
that
and
n
t
equals
character,
dash
and
z,
or
something
like
that
right
and
then
we
can
just
do
the
results.
Docs.
A
A
In
the
next
workshop,
we'll
cover
hyper.data.query,
which
allows
you
to
do
more
advanced
query
functions
as
well
as
bulk,
which
allows
you
to
upload
multiple
documents
or
update
multiple
documents
or
remove
a
batch
of
documents
with
just
one
call.
So
those
are
some
cool
features
so
check
it
out
in
our
hyper
query
workshop
and
thanks
for
your
time.