You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

150 lines
1.8 KiB

= Node
Swarmlab
:idprefix:
:idseparator: -
:!example-caption:
:!table-caption:
:page-pagination:
:experimental:
This is the area where you will quide you to use labroom *Node VueJS*
== Default Configuration
.Linux network
image::swarmlab-network.png[linux network,700,float=center]
=== Working Directory
[source,bash]
----
/project
----
=== Default user
[source,bash]
----
docker
----
=== Default password
[source,bash]
----
docker
----
=== Default password4root
[source,bash]
----
pass
----
== Directory Map
You can find it in *Hybrid*: menu:Instances[More > Connect > Directory Maps]
== Ports
You can find it in *Hybrid*: menu:Instances[More > Ports]
== Logs
You can find it in *Hybrid*: menu:Instances[More > Logs]
== Connect
TIP: Connect Info in *Hybrid*: menu:Instances[More > Connect > Open a terminal and Run]
=== Connect via SSH
[source,bash]
----
ssh docker@[IP]
----
=== Connect via exec
Open a terminal and Run:
[source,bash]
----
docker exec -it -udocker hybrid-nodevuejs_master_1 /bin/bash
----
== Find lab workers
NOTE: Commands inside container
[source,bash]
----
ifconfig
nmap -sP 172.130.0.0/24 # eth0 ip
----
or
[source,bash]
----
/project/bin/swarmlab-nmap
----
== Create a Project
NOTE: Commands inside container
Vue CLI Documentation
https://cli.vuejs.org/guide/creating-a-project.html#vue-create
.Creating a Project
[source,bash]
----
vue create hello-world
----
=== Run it!
[source,bash]
----
npm run serve
----
=== Open it!
[source,bash]
----
http://IP:8080 # IP= eth0
----
=== Find Published ports
Info in *Hybrid*: menu:Instances[More > Ports]
== Video
=== Start Vue
****
TIP: Learn how to start Vue
video::565804352[vimeo]
****
=== Stop Vue
****
TIP: Learn how to stop Vue
video::565807431[vimeo]
****