Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mage/mage-module-admin

Server counterpart to https://github.com/mage/mage-admin
https://github.com/mage/mage-module-admin

Last synced: 15 days ago
JSON representation

Server counterpart to https://github.com/mage/mage-admin

Awesome Lists containing this project

README

        

mage-module-admin
=================

Server counterpart to [mage-admin](https://github.com/mage/mage-admin)

Installation
-------------

```shell
npm install --save mage-module-admin
```

Usage
-----

### Module creation

> lib/modules/admin/index.ts

```typescript
import {
AbstractAdminModule
} from 'mage-module-admin'

class AdminModule extends AbstractAdminModule {
}

export default new AdminModule()
```

This will automatically create `login`, `logout` and `registration` user commands; simply overload
those methods on the module if you wish to customize the behaviour.

License
-------

MIT