Amity is currently only useful as a MongoDB Viewer. Full editing capabilities are in the works.
After making a JavaScript app duplicating functionality of the mongo-express project, I realized the potential for this app is far greater than just a MongoDB manager. I started the year off with a grand-slam feature creep: Amity will manage multiple servers of different types (SQL, MongoDB, then more). If you need a MongoDB manager right away, please use mongo-express.
Amity uses Node.js and FeathersJS on the server, CanJS and Steal on the client.
It currently only supports MongoDB.
document._id
property v0.5
If an adapter is passed in the amity() function at startup, it will automatically be setup as the configuration store.
Amity should only be used privately, for development purposes. The web interface can be used for executing malicious javascript on the MongoDB server. This will be improved by version 1.0.
You can still access remote database servers, but it is highly recommended that your local machine is not available for remote web access while Amity is running.
##1. Download
From Github - recommended
git clone https://github.com/marshallswain/amity Amity
From NPM:
Not recommended, yet.
npm install amity
Currently, you'll have to copy the module from the node_modules directory to the project directory and set up your config file and package.json. This will be improved in the future.
A config file is no longer necessary. Use a MongoDB adapter, and pass it a connection string.
'use strict';
var feathers = require('feathers'),
amity = require('amity'),
bodyParser = require('body-parser');
// Prep the Feathers server.
var app = feathers()
.use(feathers.static(__dirname + '/public'))
.use(bodyParser.json())
.use(bodyParser.urlencoded({extended: true}))
.configure(feathers.socketio())
.configure(feathers.rest());
// The config object is optional. Default prefix is 'api'.
var config = {apiPrefix:'api/v1'};
// Start Amity with the Amity MongoDB Adapter as a configuration store.
amity.start(app, config, new amity.adapters.MongoDB('mongodb://localhost:27017'));
// Start the server.
var port = 8081;
app.listen(port, function() {`````
// app.use('/api/tasks', require('./services/tasks'));
console.log('Feathers server listening on port ' + port);
});
node server
Visit http://localhost:8081
This project uses Gulp, StealJS, and can-compile for its build setup.
Once you have the server up and running, open another terminal tab and run gulp
. It will watch for changes in the public/main directory and rebuild the files in the public/assets directory. This will be further simplified in the near future when CanJS adds built-in support for StealJS.
Inspired by mongo-express by Chun-hao Hu