https://github.com/jwebcoder/psi-main-server
https://github.com/jwebcoder/psi-main-server
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jwebcoder/psi-main-server
- Owner: JWebCoder
- License: mit
- Created: 2019-01-07T21:41:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-12T10:23:14.000Z (about 7 years ago)
- Last Synced: 2025-02-05T08:08:33.283Z (over 1 year ago)
- Language: TypeScript
- Size: 92.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PSI main server
* [Main server repo](github.com/JWebCoder/psi-main-server)
* [PSI functions server repo](github.com/JWebCoder/psi-functions-server)
This is a personal project to create a distributed computing structure using raspberry pies connected through TCP
## Why?
Has a developer, i really like to try out new paradigms and architectures
Basically i'm trying to see if this is possible and also usefull
## How?
The idea is to create a fully scalable system using micro components and make it simple to use
## Main structure
Raspberry PI 1 - Express JS application to handle the http requests and TCP server for the other PI's
Raspberry PI 2,3,... - TPC clients able to load javascript files dynamically passing them the body and query objects from the Express JS application
## How to run
```bash
npm run dev
```
## How to use
Go to the browser and open `localhost:1337/api/[functionName]`
* functionName: one of the psi functions available
## TODO
- Minimal express server
- Data passage between TCP clients and application User (Express - TCP - PSI function - TCP - Express - Application User)
- The system should also be capable to handle the location of the PSI functions without user intervention, if a new PSI function is added to any Raspberry it should be automaticaly avaible on the administration panel for the Express application
- Express server should have an administrator backoffice where the user could define the routing and the target function