BetaJS-Server is a server-side JavaScript framework extension for BetaJS.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
docsrc/common
src
tests/scoped
.codeclimate.yml
.gitignore
.project
Gruntfile.js
LICENSE
README.md
package-source.json
package.json

README.md

betajs-server 1.0.23

Code Climate NPM Gitter Chat

BetaJS-Server is a server-side JavaScript framework extension for BetaJS.

Getting Started

You can use the library in your NodeJS project and compile it as well.

NodeJS

	var BetaJS = require('betajs/dist/beta.js');
	require('betajs-data/dist/betajs-data.js');
	require('betajs-server/dist/betajs-server.js');

Compile

	git clone https://github.com/betajs/betajs-server.git
	npm install
	grunt

Basic Usage

The BetaJS Server module contains the following subsystems:

  • Database Access and Database Store with Support for MongoDB
  • Server-Side AJAX
  • Server-Side Session Management
	var mongodb = new BetaJS.Server.Databases.MongoDatabase("mongodb://localhost/test-db");
	var store = new BetaJS.Server.Stores.MongoDatabaseStore(mongodb, "test-collection");
	store.insert({x: 5}).success(function (object) {
		console.log(object);
		store.update(object.id, {
			y: 7
		}).success(function (row) {
			console.log(row);
		}, {z: 3});
	});

Links

Resource URL
Homepage http://betajs.com
Git git://github.com/betajs/betajs-server.git
Repository https://github.com/betajs/betajs-server
Blog http://blog.betajs.com
Twitter http://twitter.com/thebetajs
Gitter https://gitter.im/betajs/betajs-server

Compatability

Target Versions
NodeJS 4.0 - Latest

CDN

Resource URL
betajs-server.js http://cdn.rawgit.com/betajs/betajs-server/master/dist/betajs-server.js
betajs-server.min.js http://cdn.rawgit.com/betajs/betajs-server/master/dist/betajs-server.min.js
betajs-server-noscoped.js http://cdn.rawgit.com/betajs/betajs-server/master/dist/betajs-server-noscoped.js
betajs-server-noscoped.min.js http://cdn.rawgit.com/betajs/betajs-server/master/dist/betajs-server-noscoped.min.js

Dependencies

Name URL
betajs Open
betajs-data Open

Weak Dependencies

Name URL
betajs-scoped Open

Main Contributors

  • Oliver Friedmann

License

Apache-2.0