Skip to content

robertovrf/sbrc21_minicurso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Minicurso SBRC'21

Welcome to our SBRC shortcourse. For now, we only make available the files we are going to use during our short course presentation. We will make available the practical exercises for the book chapter soon.

This repository currently contains:

  1. A dana code example (located in shortcourse_practicals/dana_example);
  2. The InteractiveEmergentSys tool (located in shortcourse_practicals/emergent_web_server);
  3. The Emergent Web Server code (located in shortcourse_practicals/emergent_web_server);

First, please download all the content we added to this repository. After that, go to https://projectdana.com, download the latest available version of the language for your system (we currently support: MacOS, Ubuntu, Windows and Raspberry pi). For installation instructions, please visit: http://www.projectdana.com/dana/guide/installation

After installing and testing the recently installed Dana version, to execute the Emegent Web Server using the InteractiveEmergentSys tool follow the steps below:

  1. Go to shortcourse_practicals/emergent_web_server directory in your system's terminal;
  2. Compile the pal folder:
    1. Go to /pal directory;
    2. Type: "dnc . -sp ../repository".
  3. Then compile the /repository folder:
    1. Go to /repository directory;
    2. Type: "dnc .".
  4. Go to /pal directory;
  5. Execute the InteractiveEmergentSys tool:
    1. Type: "dana -sp ../repository InteractiveEmergentSys.o ../repository/TCPNetwork.o"

Now you have an instance of the InteractiveEmergentSys running an instance of the Emergent Web Server.

To test the web serve, go to a web browser and acess: http://localhost:2012. You should see the index.html page in your browser. The index.html file is located at shortcourse_practicals/emergent_web_server/repository/htdocs.

To see the type of commands you can execute using the IntractiveEmergentSys, type "help" into the terminal.

To add a monitoring proxy to collect data from the executing web server, type following command into the terminal:

"add_proxy |../pal/monitoring/proxies/HTTPProxy.o|(:http.handler.GET.HTTPGET[0]:*)|"

Any questions? Please get in contact!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages