https://github.com/simbo/hapi-playground
A node webserver playground using hapi 17 and typescript.
https://github.com/simbo/hapi-playground
Last synced: over 1 year ago
JSON representation
A node webserver playground using hapi 17 and typescript.
- Host: GitHub
- URL: https://github.com/simbo/hapi-playground
- Owner: simbo
- Created: 2018-01-29T01:11:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-30T09:56:39.000Z (over 8 years ago)
- Last Synced: 2025-01-21T09:09:23.202Z (over 1 year ago)
- Language: TypeScript
- Size: 58.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
hapi-playground
=================
> A node webserver playground using hapi 17 and typescript.
---
## Features [WIP]
- [x] static file serving using [inert](https://github.com/hapijs/inert)
- [x] view management using [vision](https://github.com/hapijs/vision)
and [pug](https://github.com/pugjs/pug)
- [x] monitoring and logging using [good](https://github.com/hapijs/good)
and [winston](https://github.com/winstonjs/winston)
- [x] custom error views
- [x] on-the-fly css processing and caching using custom renderers
([stylus](https://github.com/stylus/stylus),
[scss](https://github.com/sass/node-sass), whatever)
and [postcss](https://github.com/postcss/postcss) with plugins
- [ ] on-the-fly js processing, bundling and caching
- [x] auth strategy using jwt
- [ ] interactive debugging console using [tv](https://github.com/hapijs/tv)
- [ ] generated api documentation using [lout](https://github.com/hapijs/lout)
- [ ] handle uncaught exceptions and cleanup afterwards using [poop](https://github.com/hapijs/poop)
## Development Usage
With node.js 8.9.x present, you can just install dependencies and use
`package.json` scripts as usual.
Using `yarn` instead of `npm` is recommended.
You can also use `docker-compose` to provide the environment. For example:
``` sh
# install dependencies
docker-compose run --rm app yarn
# run dev service
docker-compose run --rm -p 3000:3000 app yarn dev
# open a shell
docker-compose run --rm app sh -l
```