This is a standalone backend for Gamification platform built by Codebrahma based on Node (Hapi JS) and GraphQL. MongoDB will be used as backend.
Bootstraped using Hapi Starter Kit | Hapi based REST application boilerplate, uses async/await
- node.js >=
8.4.0
- yarn >=
0.27.5
- docker
- Docker is optional and is required only if you want to develop and deploy using Docker
# Install dependencies
$ yarn
# Start Server
# Set environment variables defined in `config/custom-environment-variables.json`
$ yarn start
# Run Tests
$ yarn test
# copy sample.dev.env to dev.env
$ cp bin/sample.dev.env bin/dev.env
# Start Server
$ bash bin/development.sh
# copy sample.test.env to test.env
$ cp bin/sample.test.env bin/test.env
# Run Tests
$ bash bin/test.sh
# Run lint
yarn lint
hapi-swagger
self documents all the APIs.- Visit
http://localhost:3030/documentation
to access the documentation after starting the server.
Please feel free to open an issue if you can have any questions or trouble using this starter kit.
Contributions are all welcome and encouraged.
Follow this guide to learn how to contribute.
This project is licensed under the MIT License