# inno-core

> inno-core

Latest version **0.0.3** (published 2014-07-28) · 0 weekly downloads

## Install

```sh
npm install inno-core
pnpm add inno-core
yarn add inno-core
bun add inno-core
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2014-07-28 |
| First published | 2014-07-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Known vulnerabilities | 0 (+12 in 4 direct dependencies) |
| Install scripts | no |
| Author | llk |
| Maintainers | llk2256 |

## Links

- npm: https://www.npmjs.com/package/inno-core
- npm.io page: https://npm.io/package/inno-core

## Dependencies (10)

- [nconf](https://npm.io/package/nconf.md) 0.6.9
- [crypto](https://npm.io/package/crypto.md) 0.0.3
- [log4js](https://npm.io/package/log4js.md) 0.6.15
- [mongoose](https://npm.io/package/mongoose.md) 3.8.12
- [passport](https://npm.io/package/passport.md) 0.2.0
- [oauth2orize](https://npm.io/package/oauth2orize.md) 1.0.1
- [passport-http](https://npm.io/package/passport-http.md) *
- [passport-local](https://npm.io/package/passport-local.md) *
- [passport-http-bearer](https://npm.io/package/passport-http-bearer.md) *
- [passport-oauth2-client-password](https://npm.io/package/passport-oauth2-client-password.md) *

## Recent versions

- 0.0.3 (latest) — 2014-07-28
- 0.0.2 — 2014-07-16
- 0.0.1 — 2014-07-10

## README

# inno-core

  middleware:log4js、oauth2orize


# Installation

    $ npm install inno-core

#How to use inno-core:
add config.json to  project/config folder,content like this
```javascript
    {
        "port" : 3000,
        "security": {
            "tokenLife" : 3600
        },
        "mongoose": {
            "uri": "mongodb://127.0.0.1:27017/todo_dev"
        }
    }
```
add log4js.json to  project/config folder,content like this
```javascript
   {
       "appenders": [
           {
               "type": "console"
           },
           {
               "type": "dateFile",
               "filename": "logs/log.log",
               "pattern": "_yyyy-MM-dd",
               "alwaysIncludePattern": false
           }
       ],
       "replaceConsole": true,
       "levels":{
           "log4js": "DEBUG"
       }
   }
```
See example.js
```javascript
  var innoCore = require('inno-core');
  var app = express();
  //init port、log4js、mongoose
  innoCore.init(app);
  //add oauth2
  innoCore.oauth2.use(app);

  var logger = app.get("logger")(module);
  var server = app.listen(app.get('port'), function() {
      logger.debug('Express server listening on port ' + server.address().port);
  });

```
## License

The MIT License (MIT)
Copyright (c) 2012 Mark Cavage

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

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