All Projects → callstack → hapi-graphql-boilerplate

callstack / hapi-graphql-boilerplate

Licence: MIT license
No description, website, or topics provided.

Programming Languages

javascript
184084 projects - #8 most used programming language

hapi-graphql-boilerplate

Requirements

You need to have MongoDB installed and running on your machine in order to run this boilerplate.

mongod

Or 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.

Installation

Simply clone this repository with:

git clone [email protected]:callstack-io/hapi-graphql-boilerplate.git

Install with Yarn.

yarn install

or with npm

npm install

Scripts

Start the app:

npm start

Start in dev mode:

npm run start-dev

Start in dev mode without checks:

npm run watch

Check for flow and lint errors:

npm run check

Run tests:

npm test

Routes

GET /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.

Directories

app

App directory is the place where all application-related stuff is located. That includes API endpoints and database handlers.

internals

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].