sabot

0.0.11 • Public • Published

Sabot

Lightweight starter kit for Hapi.js with React. Still under heavy development. As is provides a nice starting point for basic Dashboards using Bootstrap v3.

This will basically replace my existing hapi-base project when complete.

Status

Current Version 0.0.11

Version 0.0.11 is the latest posted to npm. Basically everything is in place and sample charts from D3RRC are being used to show off some very simple API usage details. Search works and returns any log message that contains the search expression (as a regular expression) in either the msg or url members.

Version 0.0.11+

Page routing is now done with the History API, window.location.hash or fallback to hard routing (same as History API in look). Routers automatically fixup links when they come from one type to another. As an example if the browser supports History API but gets /#/logs/request it will reform the location in the browser to /logs/request. Same is true for History API/Default Routing to Hash based routing.

Demo

A demo of the current stable version running with an in memory DB limited to 1000 + startup log entries can be viewed at http://sabot.aws.af.cm/

This is just an example of what Sabot looks like out of the box, once you clone the repo you should make it look and feel the way you need.

Why?

Really there isn't an existing React+Hapi starter, so I built one. Sabot seemed like a good name since it means a thin wrapper around a projectile to create a higher delivery efficiency. That is the overall goal of Sabot, provide a thin wrapper over the top of React and Hapi to provide a good starting point.

But you used...

Yes, Sabot ships with Bootstrap, Bunyan, and other stuff. This is all optional, you don't have to actually use any of it and can simply npm --save remove it if you don't want it. Feel free to make it your own.

Goals

  • Server side rendering of routes
  • Routes auto provided to both Socket.io and HTTP

Version History

  • 0.0.11 - Remove page.js and switch to internal router
  • 0.0.10 - Introduce start of a better router, add in AutoSizeTextArea component

License

The MIT License (MIT)

Copyright (c) 2014 Jeremy Darling

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.

Readme

Keywords

none

Package Sidebar

Install

npm i sabot

Weekly Downloads

7

Version

0.0.11

License

MIT

Last publish

Collaborators

  • jdarling