A npm module for a server-side admin server
Include this private module by adding the following under dependencies
in package.json
, and run npm install
.
"snapmobile-adminserver": "git+ssh://[email protected]/SnapMobileIO/SnapMobile-AdminServer.git",
To configure, add the following to routes.js
:
import User from '../app/user/user.model';
...
let admin = require('snapmobile-adminserver');
let utils = require('../components/utils');
admin.setUtils(utils);
admin.setUser(User);
app.use('/api/admin', admin.router);
Make any changes in /src
.
Once changes are completed, run gulp dist
to process JavaScript files and add to /dist
.