# sails-modular

> create modular apps using sailsjs 1.0

Latest version **1.0.4** (published 2019-10-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install sails-modular
pnpm add sails-modular
yarn add sails-modular
bun add sails-modular
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2019-10-08 |
| First published | 2019-08-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 11.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Sandip Patel |
| Maintainers | learn2torials |
| Keywords | sails modular app, sails hook modular, sails modularize app, sails plugins modular |

## Links

- npm: https://www.npmjs.com/package/sails-modular
- Repository: https://github.com/learn2torials/sails-modular
- Issues: https://github.com/learn2torials/sails-modular/issues
- npm.io page: https://npm.io/package/sails-modular

## Dependencies (4)

- [async](https://npm.io/package/async.md) ^3.1.0
- [sails](https://npm.io/package/sails.md) ^1.2.3
- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [include-all](https://npm.io/package/include-all.md) ^4.0.3

## Recent versions

- 1.0.4 (latest) — 2019-10-08
- 1.0.3 — 2019-08-23
- 1.0.2 — 2019-08-23
- 1.0.1 — 2019-08-23
- 1.0.0 — 2019-08-22

## 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.

---
_Source: https://npm.io/package/sails-modular · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
