ressie
v0.3.2
Published
Your server assistant.
Downloads
2
Readme
📝 Table of Contents
🧐 About
Your server assistant.
📦 Installing
NPM
npm install ressie
Yarn
yarn add ressie
🎈 Usage
Minimal Setup
import Ressie from 'ressie'
new Ressie({
routes: [
{
method: 'get',
path: '/',
handler: (req, res, next) => {
res.send({ result: 'success' })
}
}
]
})
// Output: "Server is listening on port 5000 ..."
Extended Setup
import Ressie from 'ressie'
new Ressie({
middleware: [
{
name: 'morgan',
options: {
format: 'dev'
}
}
],
port: 5000,
routes: [
{
method: 'get',
path: '/',
handler: (req, res, next) => {
res.send({ result: 'success' })
}
}
]
// * Other options TBD
})
// Output: "Server is listening on port 5000 ..."
⛏️ Built Using
- Express - Web Framework for Node.js
✏️ TODO
✍️ Author
- Alex Lee - Developer
🎉 Acknowledgements
- Icon made by Eucalyp from www.flaticon.com and is licensed by CC 3.0 BY.