►
From YouTube: Prepare Your Agoric Environment
Description
Michael FIG, Software Engineer at Agoric, walks through how to set up the Agoric environment for your first dapp and get to Hello World.
Resources:
https://agoric.com/documentation/getting-started/
https://github.com/Agoric/agoric-sdk
ABOUT
Build Fast, Earn Fast - Agoric enables developers to rapidly deploy dapps and DeFi markets on-chain using composable JavaScript smart contracts. Safely get your project from vision to global market.
LINKS
https://agoric.com
https://agoric.com/twitter
https://agoric.com/discord
https://agoric.com/telegram
https://agoric.com/newsletter
Click the 'SUBSCRIBE' button to follow our Youtube channel!
A
A
So,
as
a
roland
said,
we'll
be
taking.
Questions
on
youtube,
live
on
discord
and
he'll
surface
them
to
me
in
the
presentation.
If
you
want
to
ask
during
the
presentation
we're
going
to
start
with
walking
through
the
before
using
a
quark
documentation,
this
is
on
the
getting
started
guide
on
the
website.
The
dot
com,
documentation
website,
we're
going
to
start
a
new
client
and
the
chain.
A
A
First
you're
going
to
need
a
unix-like
environment,
so
we
then
have
to
install
node.js
and
finally
yarn
one
for
unix-like
environment.
We
usually
use
mac
os.
Linux
is
also
good
there.
There
are
just
a
couple
minor
details
about
which
node.js
packages
you
can
use
and
for
windows.
We
currently
only
work
with
weasel
the
windows
subsystem
for
linux,
so
we
hope
to
support
windows
fully
at
some
point.
But
currently
you
need
to
install
that
we
know
subsystem.
A
A
Also,
you
should
use
the
official
distribution.
If
you
can
it.
The
one
you
install
from
the
nodejs.org
website
is
is
the
one
that
works
best
for
your
platform
in
general.
If
you
don't
want
to
install
it
that
way,
that's
okay!
A
So
the
one
trick
with
the
linux
side.
Is
you
don't
want
to
install
the
node.js
snap
because
it
can't
build
add-ons
which
we
currently
rely
on,
so
installing
yarn
one?
Yes,
we
want
yarn
one.
Usually
this
is
a
bundle
with
the
node.js
package
that
you
use
and
some
things
work
with
yarn
too,
but
not
every
dapp
works
with
yarn
too.
So
it's
best
to
just
stick
with
yarn
one.
A
So
I'm
just
going
to
show
you
here
the
versions
that
I
have
installed.
I
have
12
18,
3
and
yarn.
One.
B
A
Something
that's
all
good
for
installing
the
agora
sdk.
We
want
to
open
up
a
shell,
like
I've
already
shown
clone
the
egorc
sdk
from
git
and
update
the
sdk
with
the
latest
version.
So
a
shell
prompt.
You
basically
need
something
like
bash
or
z.
Shell
should
also
work,
and
you
want
to
look
for
your
system's
terminal
app
just
like
I
have
open
here.
A
So
this
is
bash
that
I'm
currently
running
and
you
can
basically
use
any
directory
as
your
starting
point
for
where
to
download
the
code
in
to
install
things.
So
we'll
start
with
cloning,
the
work
sdk.
A
You
want
to
run
it
if
you
haven't
already
done
it,
otherwise
you
can
just
skip
to
the
next
step.
So
let's
look
at
what
that
looks
like
so
I'm
going
to
make
a
code
directory
and
then
change
into
it
and
finally
do
the
git
clone.
A
That's
the
step
here
where
we're
basically
going
to
check
out
the
hackathon
branch.
You
will
need
to
update
this
hackathon
branch
if
you're
advised
by
the
work
team
that
we
need
to
roll
out
an
upgrade
or
if
you
have
an
older,
garc
sdk
before
this
is
done.
A
A
So
next
thing
we
want
is
to
install
a
gork
cli
with
yarn,
install
yarn,
build
and
then
yarn
install
just
installs
the
libraries
that
we
need
and
after
you've
upgraded
or
pulled
the
get
the
git
repository,
then
you
want
to
run
a
yarn
install
just
to
pick
up
any
of
the
latest
dependencies.
A
A
So
this
is
what
it
looks
like
yarn,
build.
A
Well
and
finally,
after
after
you
do
the
yarn
install,
you
only
really
need
to
do
the
iron
build
again
without
installing
is
after
an
upgrade
or
if
you
change
zoe's
contract
facet
or
the
wallet
ui
you'll
know,
if
you
do
this,
because
it's
a
more
advanced
thing
and
that's
the
only
time
when
you
actually
need
to
re-run
the
yarn
build
to
get
the
effect
of
the
changes
and
installing
the
work
cli
we're
going
to
do
this
with
sudo
to
install
it
in
the
user,
local
bin
directory.
A
A
This
is
how
it
goes
we'll
go
back
to
our
code
directory,
because
the
corkscrew
is
in
the
path
we
can
be
in
any
directory.
When
we
do
this,
the
garcinite
hello
will
create
a
subdirectory
containing
the
data.
A
A
A
And
install
the
link
packages-
okay,
that's
all
good!
Finally,
we
want,
after
the
igork
install
we
wanted
to
move
on
to
start
a
simulated
chain.
So
this
is
the
part
that
I
don't
have
on.
Recording
I'll,
just
show
it
to
you
live.
So
if
we
run
the
gork
start
I'll
do
a
reset.
Just
because
I
want
to
have
a
fresh
light,
and
this
basically
starts
up
the
orc,
vm
and
it'll.
Tell
you
when
it
started
to
run
I'm
just
going
to
put
this
in
the
background
and
say:
agorak
open.
A
So
when
we
open
the
replay
that
actually
starts
our
web
browser
up
with
an
access
to
the
redeval
print
loop,
this
is
the
interactive
command
line
that
allows
us
to
interact
with
the
chain.
So
up
above
here
we
see
the
gork
wallet,
and
this
is
all
connected.
It
says
test
testnet
currency,
but
is
currently
connected
to
the
simulator
chain.
Only
now
in
the
quark
cli
we
can
essentially
run
javascript
commands.
A
There's
a
regular
console
log
and
it's
just
displaying
in
the
little
rapple
down
here
we
can
look
at
the
home
object
which
contains
a
bunch
of
stuff.
This
is
json
formatted
output,
except
for
these
presences
presences
are
things
like
remote
objects
that
you
can
access
through
the
the
cli
so
from
home.
We
see
that
let's
look
at
the
echoic
object,
which
is
a
subset
of
those
services.
B
A
A
Okay,
so
the
gork
on
chain
services,
an
interesting
thing
here-
is
that
we
have
a
price
authority.
A
A
A
Oh,
of
course,
I
didn't
do
that
right
anyway.
The
point
is,
you
can
wander
around
these
little
objects
and
use
them
as
you
would.
This
is
essentially
a
javascript
environment,
except
it's
a
bit
different
in
that
it
only
has
deterministic
things.
So
if
I
try
doing
a
math.random
I'll
just
get
sorry,
it's
not
a
function.
A
A
So
this
is
the
wallet
we'll
give
you
a
tour
of
that
in
a
later
presentation.
I
can
now
go
back
and
answer
any
questions
that
there
are.
This
was
the
quick
way
of
setting
up
the
quark
environment.