# powerstone

> Application framework for mongodb powered apps.

Latest version **0.1.6** (published 2015-08-02) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install powerstone
pnpm add powerstone
yarn add powerstone
bun add powerstone
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2015-08-02 |
| First published | 2015-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.28 |
| Dependencies | 24 |
| Known vulnerabilities | 0 (+22 in 9 direct dependencies) |
| Install scripts | no |
| Author | Lasana Murray |
| Maintainers | metasansana |
| Keywords | express, web, app, framework, mongoose |

## Links

- npm: https://www.npmjs.com/package/powerstone
- Repository: https://github.com/metasansana/powerstone
- Homepage: http://quenk.com/powerstone
- Issues: https://github.com/metasansana/powerstone/issues
- npm.io page: https://npm.io/package/powerstone

## Dependencies (24)

- [qs](https://npm.io/package/qs.md) ^2.4.2
- [cron](https://npm.io/package/cron.md) ^1.0.9
- [must](https://npm.io/package/must.md) ^0.12.0
- [csurf](https://npm.io/package/csurf.md) ^1.8.2
- [merge](https://npm.io/package/merge.md) ^1.2.0
- [morgan](https://npm.io/package/morgan.md) ^1.6.1
- [strtpl](https://npm.io/package/strtpl.md) ^0.1.0
- [express](https://npm.io/package/express.md) ~4.12.3
- [restify](https://npm.io/package/restify.md) ^3.0.3
- [bluebird](https://npm.io/package/bluebird.md) ~2.9.24
- [mongoose](https://npm.io/package/mongoose.md) ^4.0.3
- [nunjucks](https://npm.io/package/nunjucks.md) ^1.3.3
- [traverse](https://npm.io/package/traverse.md) ^0.6.6
- [deepmerge](https://npm.io/package/deepmerge.md) ^0.2.10
- [dot-access](https://npm.io/package/dot-access.md) ^1.0.0
- [body-parser](https://npm.io/package/body-parser.md) ~1.12.2
- [compression](https://npm.io/package/compression.md) ~1.4.3
- [deep-extend](https://npm.io/package/deep-extend.md) ^0.4.0
- [connect-mongo](https://npm.io/package/connect-mongo.md) ^0.8.1
- [cookie-parser](https://npm.io/package/cookie-parser.md) ~1.3.4
- [pretty-hrtime](https://npm.io/package/pretty-hrtime.md) ^1.0.0
- [express-session](https://npm.io/package/express-session.md) ~1.10.4
- [method-override](https://npm.io/package/method-override.md) ~2.3.2
- [express-jsonschema](https://npm.io/package/express-jsonschema.md) ^1.0.2

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 0.1.6 (latest) — 2015-08-02
- 0.1.5 — 2015-08-02
- 0.1.4 — 2015-08-02
- 0.1.3 — 2015-08-02
- 0.1.2 — 2015-08-02
- 0.0.2 — 2015-04-28
- 0.0.1 — 2015-04-26

## README

Powerstone
==========

Powerstone is an MVC style, ES6 friendly application framework for building
data intensive, distributed applications.
  
It was inspired by [Keystone](http://keystonejs.com)'s simplicity in setup, [Playframework](http://playframework.com)'s
configuration flexibility and overall a desire to write less code when building
node apps.


###What is provides:
* Route configuration framework.
* Tasks system for boot time jobs.
* Framework for managing and pooling connections.
* Static configuration files.
* Query framework for more modular database requests.

###What it does not provide:
* Automatic Admin UI (yet)
* ORM/ODM - bring your own and 

###Concepts

####Deployment
Powerstone is targeted at apps that deploy to environments like [Heroku](https://heroku.com) or 
[Dokku](http://progrium.com/blog/2013/06/19/dokku-the-smallest-paas-implementation-youve-ever-seen).

####Routing
Currently it uses [express](http://expressjs.com) for its http framework but there are plans
to support [restify](http://mcavage.me/node-restify) as well.

####ES6 Classes
Powerstone apps are written preferably in ES6 because of the new `class` syntax. You may need
a transpiler, [babel](http://babeljs.com) works nicely.

####Directory Layout

A powerstone app has the following directory layout:

```sh
.
├── routes
│   └── users.json
├── conf
│   ├── conf.json
│   └── connectors.js
├── controllers
│   └── UserController.js
├── middleware
│   └── isAuthenticated.js
├── models
│   └── User.js
├── queries
│   ├── getOneUser.js
│   └── getUsersWithNameLike.js
├── tasks
│   └── CreateUserTask.js
├── views    
│   └── index.html
└── apps
    ├── reports
    │   ├── routes
    │   │   └── accounting.json
    │   ├── controllers
    │   │   └── AccountingReportController.js
    │   ├── middleware
    │   │   └── isAccountingUser.js
    │   ├── models
    │   │   └── User.js
    │   ├── queries
    │   │   ├── getOneUser.js
    │   │   └── getUsersWithNameLike.js
    │   ├── tasks
    │   │    └── CreateUserTask.js
    │   ├── views
    │       └── index.html
    │
    └── monitor
     
```

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