matthewfl / node-host Goto Github PK
View Code? Open in Web Editor NEWJSApp.us -- First open Node.js open hosting architecture http://groups.google.com/group/jsapp-us (depreciated)
Home Page: http://jsapp.us
JSApp.us -- First open Node.js open hosting architecture http://groups.google.com/group/jsapp-us (depreciated)
Home Page: http://jsapp.us
This is the code base from http://jsapp.us There is a Makefile to get you up and running quickly. 1) git clone https://github.com/matthewfl/node-host.git 2) cd node-host 3) make To get started developing Install nginx ( http://nginx.org/ ) and load in the config file from devel/nginx.conf run: git submodule update --init --recursive ln -s db.nstore.js db.js ln -s config.sample.js config.js cd Bespin/BespinEmbedded ./dryice.py ../settings.json cd ../.. python devel/HostRedirProxy.py node master.js then configure you web browser to proxy through localhost:8000, this will redirect any request to jsapp.us to your local nginx install
this happened several times with more than one account and of course more than one file...
instead of the expected response i get this:
probably a bug since it goes away alone.
This will be added so that people can use CNAMEd subdomains from their own site.
Modules that need to be added or updated:
Is there an API to erase all data-base????
I found db.set
, db.get
, db.has
and db.remove
... there is no db.clear
...
How can I reset a database? Plz help me Matthew!
I guess that (for now?) with with JSApp.us we're not "allowed" to create an application like this?
http://chat.nodejs.org/
I'm actually intrigued by your sandbox service.
Meanwhile I'm testing node.js in a local virtualized enviroment and waiting for Joyent to give out some coupon codes.
When I'm running this locally, when I try to save it asks for a login. At which point I can't create a new user or login (not that I've set any user details).
When I try to create new user, it redirects to localhost:8080/newUser - which is the result of static/newUserName.html - which then keeps redirecting on submit without any notice of what it's doing. I tried logging in with the credentials I gave the "newUser" page, but those fail too.
Any pointers?
I'm seeing the following error when trying to start up node-host:
Error: Cannot find module '../db'
Because all of the api is sandboxed, it results that all the api is simulated. The http client api appears to have greatly changed since the version that was implemented in node-host. This need to up updated to the latest version.
If you make a typo (or elicit some other error), the text is rendered with "\n":
"SyntaxError: Unexpected identifier\n at new SandBox (/home/server/node-host/sandbox/index.js:66:9)\n at builder.back (/home/server/node-host/test.js:48:17)\n at builder.count (/home/server/node-host/sandbox/build.js:139:7)\n at done (/home/server/node-host/sandbox/build.js:24:7)\n at builder.compiler (/home/server/node-host/sandbox/build.js:62:2)\n at new builder (/home/server/node-host/sandbox/build.js:13:10)\n at Object. (/home/server/node-host/sandbox/build.js:143:13)\n at Object.build (/home/server/node-host/sandbox/index.js:111:37)\n at IncomingMessage. (/home/server/node-host/test.js:35:14)\n at IncomingMessage.emit (events.js:61:17)"
Those "\n" should be replaced with a proper newline character or a
Hi matthewfl, I just noticed that the jsapp.us is no longer available.
Can I still access the user content somehow?
Thx!
Hello, its possible to add support for request module?
Thanks.
I have saved a copy of node-router.js to my local filesystem under that same name. Attempts to include that file in a second file, test.js have all failed. It seems that require() is silently returning null.
Is it possible to make the 'test' command to accept a file name argument?
Something simple like: ' test myfile'
It's really annoying to open the server file every time I wanna test the app.
Cheers
Am i doing something wrong?
var http = require('http'),
url = require('url');
exports.app = function(req, res){
var options = {
host: 'www.google.com',
port: 80,
path: '/'
};
http.get(options, function(r) {
var data = '';
r.on('data', function(chunk) {
data += chunk;
});
r.on('end', function() {
res.end(data);
});
}).on('error', function(e) {
res.end("Got error: " + e.message);
});
}
Would be nice to be able to watch static assets and have edits go live automatically.
It would be great if you could list any installed modules on the server.
Add support for the assert module.
How to remove a file or delete a domain?
The HTTP responses only flush once every 4 KB.
Module query string is not present
There are two options for doing this that I am thinking about.
The first is to integrate with github using their commit hooks, so that pushing to github will launch a test server or deploy an application.
The second is to make a command that people can install on their own computer to interface with jsapp, this would allow people to use any form of version control that they chose, and not have to go through github to use version control.
It seems from a few quick test that the db.set is not working when the code is deployed.
Seeing as this is the only way for the app to save any data for persistence it seems decently important.
Would be nice to have a hot key that switches the cursor focus between the editor and command line
The testing server will be updated so that applications will have a constant url over a session, and a constant database so that the database and url will not be reset on a per testing case.
Maybe it would be a good idea to put an alert like: 'are u sure u wanna leave?' since its really easy to loose your work by pressing backspace. Some times the browser navigates back in history. That also points toward 2 other problems: Don't offer save password and can't remember user login after refresh.
just found out that jsapp supports coffee ... just have to put '.coffee' extension ... wonderful!!!
can we have stylus and jade support too?
thx matt
I was hoping there would be a way to get the node version via node --version
, but that command is unavailable. So instead I figured I would log the version number off of the process variable, but this code fails to render (it just hangs up):
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.write("Hello World from node v" + process.version + "\n");
res.end();
}).listen();
Ideally a tool look this would have a selectable node version and ability to use flags as well, but in the very least it would be good to know what version of node I am working with
I just created a profile at http://jsapp.us, but I notice that a generic image is used:
http://www.gravatar.com/avatar/1e5e1048e7215903c4224f58dde04997?d=identicon&s=200
How can I edit that setting so that an actual photo of me is used?
Thanks,
Kevin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.