ScratchData LogoScratchData
Back to liam48D's profile

hax

LIliam48D•Created October 31, 2015
hax
6
2
210 views
View on Scratch

Description

This is a Scratch client for a node.js server designed for this project. Layout of `morecloudhax`, my server folder: morecloudhax l_-» index.js | This runs the server, checking for a request every 6 seconds. | That means that if more than one request is made every 6 | seconds, the last made request is the one processed. This is | so that we don't make over 10 requests per minute, which is | the official (non-enforced..?) request limit. | | Basically it checks for input in the cloud var "in", applies security | checks on the input, and responds with the contents of that file | inside of the public folder if the input got past the security | system. |_-» package.json | Tells npm we need the scratch-api. |_-» node_modules |_-» scratch-api |_-» ... |_-» public |_-» hello.txt | "Hello world!\n" |_-» wat.txt | "wat even is this" There's a nasty bug where spaces are decoded as ")" and new lines are decoded as "~" but besides that this project works pretty well! Obviously it will only work if my server hasn't crashed or closed.

Project Details

Project ID86051636
CreatedOctober 31, 2015
Last ModifiedNovember 2, 2015
SharedOctober 31, 2015
Visibilityvisible
CommentsAllowed