![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
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.
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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.