
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
hapi-socket-react-boilerplate
Advanced tools
Boilerplate app to get you up and running with Hapi, HTTPS, HTTP/2, Web Socket and React/Redux.
Boilerplate app to get you up and running with Hapi, HTTP2, Web Socket and React.
Demo can be found here
I've written a blog article detailing the steps I've gone through to create. Also the good 😇, the bad 👿 and the ugly ☠️.
Assuming you are on Mac OS 🍏 and Node 8.9.3 or higher installed. Not tested on any other OS.
In the terminal run the following: -
git clone git@github.com:blairg/hapi-socket-react-boilerplate.git
cd hapi-socket-react-boilerplate
npm run createCertificate
. Fill in the questions when asked. Can be fictitious values.npm i
npm run dev
https://localhost:3000/index
(add security exception rule for local cert)Ensure you have created the cert and key as per the previous step.
Assuming you have cloned the repo and installed the packages. Also, that you have Docker and Docker Compose installed too. In the terminal do the following, in the root of the directory you cloned the repo too: -
npm run createCertificate
. Details are all optional..env
file, this can be blank as the Dockerfile has default values set.docker-compose up
https://localhost:3000/index
(add security exception rule for local cert)Following options: -
npm run test
npm run test:coverage
. This will output to coverage
folder. Locate the index.html
in here and open in your browser.npm run test:watch
Unit Tests
will execute tests. Tests with Coverage
, will run tests with coverage.npm run storybook
npm run storybook:build
npm run lint
npm run pretty
If you find anything wrong with this repo post them here please.
Refer to CONTRIBUTING.md
in the root of this repo.
I've left myself some work to do. Look in todo.md
.
FAQs
Boilerplate app to get you up and running with Hapi, HTTPS, HTTP/2, Web Socket and React/Redux.
The npm package hapi-socket-react-boilerplate receives a total of 8 weekly downloads. As such, hapi-socket-react-boilerplate popularity was classified as not popular.
We found that hapi-socket-react-boilerplate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.