New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hapi-socket-react-boilerplate

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-socket-react-boilerplate

Boilerplate app to get you up and running with Hapi, HTTPS, HTTP/2, Web Socket and React/Redux.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

hapi-socket-react-boilerplate

Build Status Coverage Status Known Vulnerabilities dependencies Status devDependencies Status

Boilerplate app to get you up and running with Hapi, HTTP2, Web Socket and React.

Demo can be found here

Project Overview 🤓

I've written a blog article (TBC) detailing the steps I've gone through to create. Also the good 😇, the bad 👿 and the ugly ☠️.

Get it running locally 🏌️

Assuming you are on Mac OS 🍏. 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
  • Create certificate for HTTPS npm run createCertificate. Details are all optional.
  • npm i
  • npm run dev
  • In your browser go to https://localhost:3000/index (add security exception rule for local cert)
  • 👏

With docker 🐳

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: -

  • docker-compose up
  • In your browser go to https://localhost:3000/index (add security exception rule for local cert)

Running tests 👩‍🔬👨‍🔬

Following options: -

  • To just run the unit tests -> npm run test
  • To run tests with coverage (Istanbul) -> npm run test:coverage. This will output to coverage folder. Locate the index.html in here and open in your browser.
  • To watch tests for changes -> npm run test:watch
  • In VS Code you have 2 debug options avaiable for tests. Mocha Tests will execute tests. Mocha Tests with Coverage, will run tests with coverage.

Linting 🔍

  • In the terminal run ESLint with -> npm run lint

Issues 🤒

If you find anything wrong with this repo post them here please.

Todo ✍️

I've left myself some work to do. Look in todo.md.

Keywords

FAQs

Package last updated on 03 Dec 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc