►
From YouTube: Hyper Hello World Workshop (NodeJS)
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-nodejs
A
A
In
this
workshop,
we'll
be
using
the
data
service
of
hyper
and
we'll
create
a
document
into
our
data
service
and
get
a
document
out.
A
json
document
also
show
you
how
to
set
up
a
hyper
app
and
how
to
connect
your
node.js
application
to
that
hyper,
app,
we'll
be
using
gitpod,
which
is
a
virtual
environment,
so
that
you
can
just
literally
click
a
link
and
follow
along.
A
In
order
to
do
this,
we
go
to
https
dashboard
dot,
hyper
io
I'll
just
display
that
there
so
we're
going
to
go
to
dashboard.hyper.io.
A
A
A
A
In
get
pod,
so
if
you
go
to
github
hyper
63
workshops
dash
node.js
on
that
repo,
you
should
see.
You
know
this
workshops,
repo,
and
this
got
the
hello
world
workshop
in
it,
and
what
we
want
to
do
is
launch
that
in
get
pod.
So
the
way
that
that
we
do
that,
if
you
install
the
get
pod
extension,
you
get
a
little
button
and
you
can
just
click
on
that
button
and
it'll
launch
it.
A
And
a
virtual
machine,
so
you
have
access
to
all
the
things
that
you
would
have
in
your
local
environment
at
terminal,
git
and
docker
and
all
of
this
stuff.
But
we've
got
node
installed,
so
we
got
node
version,
16
installed
and
mpm
version
8
installed.
A
We're
going
to
first
open
up
the
data
hello,
world
folder
and
we're
going
to
create
a
new
file
called
dot
emv,
and
this
will
have
our
environment
variables
in
it
and
in
this
file
we're
going
to
type
hyper,
and
when
I
told
you
to
copy
this
connection
string,
you
can
click
on
the
icon
here.
So
I
just
moved
back
to
the
hyper
dashboard
and
we're
looking
at
our
app
and
I'm
just
going
to
copy
this
connection
string
right
here
and
then
I'm
going
to
go
back
to
our
environment
and
paste
it
in.
A
A
A
A
A
A
Cool
and
let's
just
do
yarn,
make
sure
everything's
up
to
date
and
then
we're
gonna,
say
yarn
start
great.
So
now
we're
running
our
little
api
web
server
on
localhost
3000,
which
in
getpod
will
give
us
a
url
here
and
you
can
see
when
we
query
the
root
we
get.
Mario
wiki
api
and
the
nice
thing
about
the
server
is,
we
can
just
add
code
and
save
and
then
refresh,
and
we
should
see
it
there
if
our
server
is
restarting.
A
A
Now
that
we
have
our
hyper
instance,
we
can
add
this
document,
that's
coming
in
as
request
body
to
the
hyper
data
service
by
using
await,
and
then
data,
dot,
add
and
we'll
say,
request
dot
body
like
that,
and
then
what
we'll
do
is
just
send
the
result
back:
okay
and
let's
test
that
using
our
curl
command.
So
I'm
going
to
add
a
new
terminal
window
down
here
and
I'm
just
going
to
type
curl
host
local
host
3000,
slash
api,
slash
characters
and
we're
going
to
send
it
as
a
content,
type
application.
A
A
Now
what
I
want
to
do
is
call
curl,
localhost,
3000,
api
characters,
slash
character,
dash
one,
and
I
want
to
get
that
document
back.
So
in
order
to
do
that,
I
need
to
implement
this
get
characters.js
file
and
actually
make
a
a
get
call
to
hyper
data
service
with
that
id
that's
coming
in
as
a
parameter.
A
A
So
that
is
our
first
workshop,
where
we
go
through
and
create
a
character,
get
a
character
and
set
up
our
hyper
desktop.
You
can
play
around
with
this
with
some
curl
commands.
If
you
want
to
add
luigi
or
bowser,
and
then
you
can
verify
you
know
and
use
pretty
json
to
print
that
out,
that's
kind
of
nice
so
that
you
get
a
little
bit
better
view
of
the
document
right,
so
we've
got
character,
one
character
is
the
type
and
the
name
is
mario
all
right.
Thank
you.