Skip to content

Barebones boilerplate with a hapijs API and a react-redux client

Notifications You must be signed in to change notification settings

gjunkie/hapi-react-kit

Repository files navigation

Build Status Known Vulnerabilities Known Vulnerabilities Known Dev Vulnerabilities

hapi-react-kit

A hapijs API and React client boilerplate project.

This project got started out of a need to have a boilerplate that didn't tie up the client and server-side logic. Most boilerplate projects coupled them pretty tightly and made replacing their respective frameworks pretty cumbersome.

I'm a huge fan of hapijs so that's what this project uses and it is Hapi.js v17.x.x ready. For the client-side this project uses React. I've also set up react-redux. Feel free to clone this and swap them out for your preferred frameworks.

Requirements

While the server and client-side of hapi-react-kit can run independently while in development, you will require Docker to deploy this so that both servers can run simultaneously.

Installation

  • git clone [email protected]:gjunkie/hapi-react-kit.git <project-name>
  • cd hapi-react-kit/client
  • npm install
  • cd ../hapi-react-kit/server
  • npm install

Running Your App

Using Docker Compose

  • docker-compose up

Running locally without Docker

  • cd hapi-react-kit/client
  • npm start
  • open new terminal tab.
  • cd hapi-react-kit/server
  • npm start

Tests

  • cd into the project.
  • npm test

License

MIT (go nuts)

About

Barebones boilerplate with a hapijs API and a react-redux client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published