Skip to content

callstack/hapi-graphql-boilerplate

Repository files navigation

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 git@github.com: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.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published