You need to have MongoDB installed and running on your machine in order to run this boilerplate.
mongodOr you can use external MongoDB DaaS (check out Heroku)
and specify process.env.plugins_db_uri variable, or edit app/manifest.js file and provide your mongo URL.
Simply clone this repository with:
git clone [email protected]:callstack-io/hapi-graphql-boilerplate.gitInstall with Yarn.
yarn installor with npm
npm installStart the app:
npm startStart in dev mode:
npm run start-devStart in dev mode without checks:
npm run watchCheck for flow and lint errors:
npm run checkRun tests:
npm testGET /v1/api/graphiql - GraphiQL documentation, basic credentials: login: admin, password: admin.
POST /v1/api/graphql - GraphQL endpoint.
GET /v1/api/status - Check if server is up.
App directory is the place where all application-related stuff is located. That includes API endpoints and database handlers.
Internals is a folder used by this boilerplate to run itself (e.g. with babel or without it), scaffold new modules (Yeoman generator) and others. It's also a place where all un-published modules this boilerplate uses like db one are located.