Serverside Snap! is a Snap! extension that allows you to execute serverside code from Snap!
Installation
git clone https://github.com/programmeruser2/snap-server.git
cd snap-server
npm install
npm start
Serverside Snap! is a Snap! extension that allows you to execute serverside code from Snap!
git clone https://github.com/programmeruser2/snap-server.git
cd snap-server
npm install
npm start
Sounds interesting
What does it do above and beyond normal Snap!
Can you give an example?
npm install Electron
Hi!
Only one comment (in case anyone is interested)...
Snap4Arduino (desktop version) is just a Snap! desktop version built on node.js (with some add-ons)
Then, running Snap4Arduino (yes not online versions) you have already this feature and, using JS blocks, you can play with "server" javascript features.
Then, just...
That's all!
Joan
Oh, by the title I thought that you made Snap! code (the blocks) run in the server, not running node.js code in Snap! This is nice, but the former would be cooler.
Hi @pumpkinhead,
Those ideas are "run your code in your computer, as a server (in the "javascript" meaning... that is wit full access to your computer OS)
Then, your computer is "the server". Yes it is. Another thing is where (and how) you have this server connected.
So, in the example code (making a web server):
So, yes. It is a sever!
Joan
Node.js can be hosted on remote server glitch or repl.it or any cloud provider. This way Snap! project can be used to handle https request and build HTML Web application. With remote canvas emulation projects can even have graphical UI (e.g Leaflet.js alike) and server side processing in one package.
Cool!
@programmer_user
Oh c'mon, the link redirect me to a Rick Roll meme in Youtube, (This is not April Fools)!!!
Please put the real link.
it says it's april 1st on my calendar, which is the date of april fools, so therefore it is april fools. also you kinda ruined the prank by saying what the prank was.
lmao now it is not april 1st, so no more april fools pranks
(unless somehow it's still april 1st where y'all live.)
april 2nd
yes it is april 2nd now. i wrote that at 8:28 pm on april 1st in my timezone.
oh, ok. its 12:32 here.
[offtopic]
8:47 here
[/offtopic]