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: 4 months ago
JSON representation
Server counterpart to https://github.com/mage/mage-admin
- Host: GitHub
- URL: https://github.com/mage/mage-module-admin
- Owner: mage
- Created: 2018-11-28T07:12:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-28T07:20:49.000Z (over 7 years ago)
- Last Synced: 2025-10-05T15:48:36.191Z (8 months ago)
- Language: TypeScript
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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