Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/learn2torials/sails-modular
Sails Js Modular App Plugin
https://github.com/learn2torials/sails-modular
modular mvc sails-modular sailsjs
Last synced: 6 days ago
JSON representation
Sails Js Modular App Plugin
- Host: GitHub
- URL: https://github.com/learn2torials/sails-modular
- Owner: learn2torials
- License: mit
- Created: 2019-08-22T13:17:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-04-14T17:11:19.000Z (almost 3 years ago)
- Last Synced: 2024-12-15T05:14:18.467Z (about 1 month ago)
- Topics: modular, mvc, sails-modular, sailsjs
- Language: JavaScript
- Homepage: https://learn2torials.com
- Size: 89.8 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
### Sails Modular App
This plugin allows you to create modular application using sailsjs library.
![Licence](https://img.shields.io/github/license/learn2torials/sails-modular)
![Issues](https://img.shields.io/github/issues/learn2torials/sails-modular)
![Forks](https://img.shields.io/github/forks/learn2torials/sails-modular)
![Stars](https://img.shields.io/github/stars/learn2torials/sails-modular)### Requirements
- sailsjs >= 1.0
### How to install this plugin
```bash
npm install sails-modular --save
```### How to use this plugin
Create a directory called modules in your app directory. All folders within
modules directory will be loaded as a module in your application.Following is a sample directory structure for you new module.
You can add things as per your needs. Have a look at these sample files in
modules directory in this repo to get the idea.```bash
app
|-- modules
|-- test
|-- configs
|-- routes.js
|-- policies.js
|-- controllers
|-- TestController.js
|-- models
|-- TestModel.js
|-- policies
|-- isTest.js
|-- services
|-- TestService.js
```### How to test this module
Once your hook is loaded your new test module will be available.
Access one of the routes defined in your new configs/routes.js file.