npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hapi-socket-react-boilerplate

v1.9.0

Published

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

Downloads

25

Readme

hapi-socket-react-boilerplate

Build Status Coverage Status Known Vulnerabilities dependencies Status devDependencies Status Codacy Badge CodeFactor code style: prettier

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 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 🍏 and Node 8.9.3 or higher installed. Not tested on any other OS.

In the terminal run the following: -

  • git clone [email protected]:blairg/hapi-socket-react-boilerplate.git
  • cd hapi-socket-react-boilerplate
  • Create certificate for HTTPS npm run createCertificate. Fill in the questions when asked. Can be fictitious values.
  • 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: -

  • Create certificate for HTTPS npm run createCertificate. Details are all optional.
  • Create an .env file, this can be blank as the Dockerfile has default values set.
  • 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. Unit Tests will execute tests. Tests with Coverage, will run tests with coverage.

Storybook 📚

For more info

  • In the terminal run -> npm run storybook
  • Build Storybook as a static site -> npm run storybook:build

Linting 🔍

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

Prettier 🙏

  • In the terminal run Prettier with -> npm run pretty

Issues 🤒

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

Contributing

Refer to CONTRIBUTING.md in the root of this repo.

Todo ✍️

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