denim-express-factory
v1.0.21
Published
Express factory for creating express applications consistant across platform
Downloads
12
Readme
denim-express-factory
Description
Getting Started
yarn add denim-express-factory
Prerequisites
None
Installing
Clone the repo
git clone https://github.com/denimlabs/denim-express-factory.git
import
import { makeDenimServerServices, makeDenimServer } from 'denim-express-factory'
import Raven from 'raven'
import config from 'config';
const logger = Raven.config(config.raven).install()
const denimServerServices = makeDenimServerServices(
{
config,
logger
}
)
logger.captureMessage('Denim-Data Started')
const denimServer = makeDenimServer(denimServerServices)
denimServer.express.use((req,res,next)=>{
res.send('hello')
console.log('here')
next()
})
denimServer.serverStart()
denimServer.secureServerStart()
Running the tests
yarn test
Deployment
yarn publish
Built With
- node - Node 9.2.0
- babel-cli - Used for transpiling and running es6
- babel-preset-env - Used for transpiling and running es6
- jest - Testing framework
- chai - Assertion Library
- husky - Pre-commit hooks
- lint-staged - Linting for changed files
- fs - node file system module
- chalk - Colored console output
- commitizen - commit log standards
- express - Web framework for Node
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Michael W. Clark - Initial work - MichaelWClark
License
This project is licensed under the MIT License - see the LICENSE.md file for details