Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 714 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 714 Bytes

SnapMobile-AdminServer

A npm module for a server-side admin server

Usage

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

Updating

Make any changes in /src.

Once changes are completed, run gulp dist to process JavaScript files and add to /dist.