Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mage/mage-module-admin
- Owner: mage
- Created: 2018-11-28T07:12:24.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-28T07:20:49.000Z (almost 6 years ago)
- Last Synced: 2024-03-25T08:02:52.470Z (8 months ago)
- Language: TypeScript
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- 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