►
From YouTube: Virtual Workshop hyper hello world Tom Wilson
Description
In this short virtual workshop, Tom Wilson walks through a short hello world with the hyper Data Service.
The workshop is located at
https://github.com/hyper63/workshops/tree/master/hello-world
Need help, join our chat at https://hyper.io/slack
More workshops about hyper will be coming soon!
Want to learn more about hyper?
Check out our blog: https://blog.hyper.io and our docs - https://docs.hyper.io
Some specific links
https://blog.hyper.io/why-start-hyper/
https://blog.hyper.io/hyper-architecture/
A
Hello
in
this
video
we're
going
to
do
a
hello
world
workshop
for
hyper
today,
we'll
be
focusing
on
the
development
version
of
hyper
and
then
in
a
later
video
we'll
go
through
the
cloud
version
of
hyper.
In
this
workshop
we
will
be
creating
some
api
endpoints
for
mario
wiki.
Everyone
loves
mario,
so
we're
gonna
kind
of
start.
The
creation
process
of
a
mario
wiki
web
application,
where
you
can
store
interesting
things
about
the
mario
characters,
as
well
as
the
mario
games,
and
then
kind
of
link
them
together.
A
But
we're
not
going
to
do
all
of
that
in
the
workshop.
We're
going
to
have
several
workshops
where
we
kind
of
build
this
in
and
use
hyper
on
the
back
end,
but
in
this
one,
just
to
you
know,
give
this
demo
a
little
bit
more
than
just
hello
world.
We're
gonna
create
a
couple
endpoints
one
we'll
create
the
character
document
in
hyper
and
the
other
will
get
the
character
document
out
of
hyper
and
we're
going
to
do
all
this
in
git
pod.
A
A
And
we'll
just
click
open
in
get
pod
and
that
should
spin
us
up
a
get
pod
workshop
and
while
that's
working
we're
going
to
talk
about
what
you
need
to
know
in
order
to
do
this
workshop,
so
you
need
to
understand
how
http
json
apis
work.
You
know,
request
response
and
we'll
be
using
that
if
you
have
a
little
bit
of
information
or
knowledge
about
express
or
opine,
that
would
be
great
too.
A
A
So
this
repo
will
have
all
of
our
future
workshops
in
it
for
hyper
and
we're
starting
with
hello
world,
so
we'll
cd
in
there,
and
in
that
workshop,
we've
got
the
readme
and
it
was
just
showing
and
we've
got
a
server.js
and
we've
got
a
scripts
folder
and
an
api
folder.
So
we're
going
to
cd
in
there
and
we're
going
to
bring
in
a
developer
instance
of
hyper
hyper
is
a
service
framework.
A
It
has
all
kinds
of
services
we're
going
to
focus
on
the
data
service,
so
we'll
just
use
curl
and
we'll
pull
in
from
hyperlen
dot,
s3,
amazon,
aws,
dot,
com,
slash
hyper,
so
we'll
just
use
curl
and
that's
going
to
download
the
hyper
local
executable.
It's
about
86
megs.
It
doesn't
take
too
long
to
download,
which
is
pretty
cool,
so
we'll
make
it
executable
and
then
finally,
we're
gonna
start
hyper
up,
and
we
should
see
that
the
service
is
listening
to
port
6363.
A
So
with
that
we're
going
to
create
a
new
terminal
and
move
from
the
setup
stage
to
the
configuration
stage
and
in
the
configuration
stage,
we
basically
need
to
give
our
app
an
environment
variable.
So
it
knows
how
to
connect
to
the
hyper
service,
so
in
development,
we're
going
to
use
a
dot
emv
file,
so
we're
going
to
create
a
emv
file
and
in
that
dot,
emv
file,
oops
we're
in
the
wrong
directory.
A
So,
let's
remove
that
dot,
amv
file
and
cd
into
hello
world
and
then
we'll
create
a
dot
emv
file
in
that
directory
and
in
that
file
we're
just
going
to
set
up
one
environment
variable
hyper
and
it's
going
to
take
a
connection
string.
Now
a
connection
string
kind
of
looks
like
a
url,
but
with
hyper.
It
kind
of
uses
it
differently
and
when
we
get
into
the
hyper
cloud
service
you'll
see
that.
A
A
So
that's
what
we're
going
to
run
using
dino
we're
going
to
run
and
we're
going
to
give
dino
all
access,
so
that
just
saves
from
typing
here,
because
it
kind
of
needs
to
read
a
file
the
emv
file
and
it
needs
to
be
able
to
use
environment
variables
as
well
as
needs
to
be
able
to
use
the
network
to
essentially
make
a
call
to
our
hyper
service.
A
So
we're
going
to
go
scripts,
setup,
dev.js
and
we'll
run
that
and
it's
going
to
pull
down
all
its
dependencies
and
then
run,
and
if
we
go
and
look
at
our
hyper
terminal,
we
can
see
that
we
created
a
database,
which
is
great.
That's
what
we
wanted
to
get
out
of
that,
and
now
that
we've
got
our
configuration
set
up,
we
can
move
to
the
next
step,
which
is
actually
using
hyper
to
create
a
character
and
in
order
to
do
that
and
make
it
super
easy
where
you
didn't
have
to
write
a
lot
of
boilerplate.
A
Id
and
those
are
the
two
end
endpoints
we
want
to
implement
and
we
just
got
them
in
a
couple
of
files
for
us
so
that
we
can
write
the
code
there.
But
before
we
write
that
code,
let's
go
ahead
and
fire
up
our
server
and
we
can
just
do
scripts
start.s8
and
that
should
bring
in
opine
and
start
our
little
web
server
on
port
3000.
So
it's
running
on
port
3000.
A
A
A
Nestland
nestland
is
a
repository
of
dino
modules
and
that's
where
all
of
hyper's
modules
are
and
for
this
version
we're
going
to
use
0.0.7
and
proxy.js.
So
talk
a
little
bit
about
that
later,
but
the
the
proxy
js
file
basically
takes
it
and
wraps
fetch
within
it,
so
that
you
can
just
await
it
and
do
your
command.
So
we
we've
got
that,
and
it
also
proxy
also
looks
for
this
environment
variable
hyper
to
figure
out
its
connection
string.
A
So
we
can
do
that
there
and
instead
of
returning
a
not
implemented,
we're
going
to
just
return.
Res.Send
result
pure
happy
path.
So
that's
our
post
handler
to
create
a
new
document.
Now
this
is
a
demo.
This
is
a
hello
world.
So
we're
just
focusing
on
kind
of
the
happy
path
and
but
in
you
know
a
real
app,
you
would
wrap
it
and
handle
error,
error,
states
and-
and
you
know,
make
sure
that
your
data
is
safe,
going
in
etc,
etc.
A
A
A
So
let's
do
a
couple
of
curl
commands
and
I've
just
got
some
kind
of
on
my
little
clipboard
here.
So
we
don't
have
to
see
me
type
all
of
these,
but
basically
here
we're
doing
a
curl
and
it's
a
post.
Let
me
see
if
I
can
bump
that
up
a
little
bit
and
hide
that
so
all
we're
doing
is
a
curl
post
and
we're
posting
mario
with
a
description
leading
character,
mario
universe,
so
we're
just
posting
this
json
document
to
the
endpoint
api
character.
So,
let's
hit
enter.
A
We
got
ok,
true
id
1,
that's
awesome!
And
now,
if
we
go
to
hyper,
we
can
see
that
we
created
a
document.
So
that's
pretty
cool.
Now,
let's
get
it
back
out.
So,
let's
simply
curl
the
api
characters,
slash
one
endpoint
and
then
we're
just
going
to
pipe
that
into
a
json
thing,
so
it
kind
of
prints
it
out.
Pretty,
let's
see
what
did
I
type
wrong?
A
A
Cool,
so
we
added
luigi
and
now,
let's
get
luigi
out
and
we'll
just
do
two
and
there
it
is,
and
we
can
go
to
our
hyper
and
we
can
see
that
we
are
creating
documents
and
getting
documents
out
pretty
cool.
So
that's
really
the
the
gist
for
this
workshop.
It
was
just
a
short
hello
world.
You
can
see
how
easy
it
is
to
do
basic
crud
commands
in
hyper.
A
We
will
get
into
more
advanced
commands
where
hyper
really
really
shines
and
separating
your
business
logic
from
your
services,
keeping
your
services
generic,
while
you
make,
which
makes
it
very
easy
to
iterate
rapidly
on
your
business
logic
without
having
to
worry
about
all
of
the
service
infrastructure
you
need
so
anyway,
thanks
for
watching
and
yeah
subscribe
to
the
youtube
channel
for
more
information
about
hyper
thanks,
bye.