We aim to take an event graph architecture down through multiple layers of computing, routing event propagation also through a message passing network between multiple cpus each operating modular hardware endpoints.
This project serves the developement environment / api we use to write and represent programs that are event graphs.
This project serves the developement environment / api we use to write and represent programs that are event graphs. [Install and Run](https://gitlab.cba.mit.edu/jakeread/atkapi/blob/master/installing-node-sp-ws.md)
# Installing Node.js, WebSocket and SerialPort | Run atkapi
To interface over mods, or with atkterminal, you'll need to install node.js, and then the packages serialport and ws (websocket).
To run atkapi you'll need to install node.js, and then the packages serialport and ws (websocket).
## Install Node.js
Node.js is a runtime environment for javascript, so you can write and run js locally. [Download and install it here](https://nodejs.org/en/download/) - right now, I'm running v6.11.3, 8.11.3 should work as well.
Node.js is a runtime environment for javascript, so you can write and run js locally. [Download and install it here](https://nodejs.org/en/download/).
To check that node is installed, you can use
``node -v``
In Windows check that in *Environment Variables, System Variables, Path* there is a path for C:\Users\yourusername\npm folder. If the folder does not exist, create it and set the path.
## Install Serialport
Node comes with a package controller called 'npm' - node package manager. You can use this to install dependencies for node programs.
...
...
@@ -27,3 +29,17 @@ WebSockets are very simple web connections. In the *atkbridge* we use one to mov
To install ws, do
``npm install ws``
## Run atkapi (yay!)
cd to the atkapi folder and run:
``node main``
You should see this message in the terminal *OPENING THIS PRGRAM REP ...*
## Open local host
In a browser open *localhost:8080* you will see the mods and this msg in the terminal *SEND PROGRAMS TO UI*