2.9 KiB
Swarmlab is a collection of services that aims to
provide teachers and professors with online remote tools to do their lessons
give students the opportunity to study real life examples in their chosen area of expertise
allow developers to fully test and debug their applications and provide POC’s
or you simply want to use a Application (in a microservices-based architecture)
Swarmlab provides you with all the required tools, tools to teach work or try out demos in a completely virtual environment.
More info: http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs/swarmlab/docs/index.html
LabInstance nodejs
Node.js is an open-source, cross-platform, back-end JavaScript runtime environment that runs on the V8 engine and executes JavaScript code outside a web browser. Node.js lets developers use JavaScript to write command line tools and for server-side scripting—running scripts server-side to produce dynamic web page content before the page is sent to the user's web browser. Consequently, Node.js represents a "JavaScript everywhere" paradigm, unifying web-application development around a single programming language, rather than different languages for server-side and client-side scripts.
Node.js has an event-driven architecture capable of asynchronous I/O. These design choices aim to optimize throughput and scalability in web applications with many input/output operations, as well as for real-time Web applications (e.g., real-time communication programs and browser games).
The Node.js distributed development project was previously governed by the Node.js Foundation, and has now merged with the JS Foundation to form the OpenJS Foundation, which is facilitated by the Linux Foundation's Collaborative Projects program
Quickstart
This is a quickstart guide of howto use this LabInstance
HowTo use it
Default Configuration
- Working Directory
/home/docker/project
- Default user
docker
- Default password
docker
- Default password4root
pass
Vue CLI Documentation
https://cli.vuejs.org/guide/creating-a-project.html#vue-create
Creating a Project
vue create hello-world
Run it!
npm run serve
Open it!
http://localhost:8080
RUN INSTANCE
Swarmlab services can be run in different ways.
- You can run them through the swarmlab hybrid environment (http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs/swarmlab/docs/hybrid/start-microservices.html)
- or use them individually at will on the command line of your system
CLI
git clone ...
cd [DIRECTORY]
help
make help
create service
make create
start service
make start
stop service
make stop
list service
make list
clean service
make clean