This is the Red Comet Labs starter template for projects. It is Hapi.js on the server side. React.js and Redux on the client and PouchDB with CouchDB as the database.
npm install
to install all dependencies. By default it looks for CouchDB at http://127.0.0.1:5984. But you can override that by setting the COUCH
environment variable.
npm test
to run server and client side tests.
make server
to run the server instance and make client
to run the client side. Then visit http://127.0.0.1:3000 for the web app.
Run make prod
, this will bundle everything into /dist/
and serve it via hapi.js. Remember to set the NODE_ENV
to production.