= how-to-build-a-Swarmlab-service!

image::ROOT:swarmlab.png[swarmlab,150,float=right]

== Clone a example

[source,bash]
----
git clone https://git.swarmlab.io:3000/swarmlab/swarmlab-microservice-example.git
----

== Edit  template

[source,bash]
----
install/usr/share/swarmlab.io/sec/swarmlab-gen.sh
----

== Generate

[source,bash]
----
 ./install/usr/share/swarmlab.io/sec/swarmlab-gen.sh                                               
----
                                                                                                   
== create

[source,bash]
----
 ./install/usr/share/swarmlab.io/sec/swarmlab-sec create                                           
----

== Start

[source,bash]
----
 ./install/usr/share/swarmlab.io/sec/swarmlab-sec up                                               
----

== Stop

[source,bash]
----
 ./install/usr/share/swarmlab.io/sec/swarmlab-sec down                                             
----

== git push 

[source,bash]
----
git add .
git commit -m"info"
git push origin
----




