Giter Site home page Giter Site logo

matthewfl / node-host Goto Github PK

View Code? Open in Web Editor NEW
141.0 141.0 19.0 9.07 MB

JSApp.us -- First open Node.js open hosting architecture http://groups.google.com/group/jsapp-us (depreciated)

Home Page: http://jsapp.us

ActionScript 18.70% Shell 0.01% Perl 0.02% JavaScript 78.70% Python 2.57%

node-host's Introduction

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 

node-host's People

Contributors

matthewfl avatar proppy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-host's Issues

select a query

this happened several times with more than one account and of course more than one file...
instead of the expected response i get this:

' Select a query

probably a bug since it goes away alone.

Custom subdomains

This will be added so that people can use CNAMEd subdomains from their own site.

Update api

Modules that need to be added or updated:

  • utils
  • events
  • fs (possibly get listing files and add more ways to read files)
  • http (out of date, need updating)
  • https (make it proxy to the same http server)
  • vm (maybe just message that is it not allowed, possibly could upgrade sandbox to use this interface rather than the lower level hooks)
  • assert (rewrite to make it work with our console)
  • tty (error message for not allowed (not really useful in our case really))
  • os ( ^ )

Wipe out database

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!

Complexity of the applications

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.

Hosting offline version - requires login & fails

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?

Missing db folder?

I'm seeing the following error when trying to start up node-host:

 Error: Cannot find module '../db'

error stack should properly handle newlines

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

Failure to require files on my local filesystem

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.

Test specific file

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

can't make http.get to work

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);
});

}

Version control

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.

Database on deployed apps is not saving

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.

Staging testing server

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.

Backspace shortcut fix

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.

stylus and jade support

just found out that jsapp supports coffee ... just have to put '.coffee' extension ... wonderful!!!
can we have stylus and jade support too?
thx matt

Cannot get node version

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.