Example Multicolour App with Hapi server, Mongo and OAuth.
Multicolour is a library that lets you write JSON to automatically create your REST API with JSONAPI support, OAuth support while letting you choose your database technology and even using multiple database technologies across blueprints.
- Make sure you have an instance of Mongo running that you can connect to.
- Update the database configuration to your Mongo connection settings in
config.js
. - Run
npm i
to get the dependencies for the app. - To use the auth plugin you'll need a registered app on one of the below services and to add your configuration to
config.js
.
Twitter
Facebook
GitHub
Google
Instagram
LinkedIn
Yahoo
Foursquare
VK
ArcGIS Online
Windows Live
Nest
Phabricator
BitBucket
Reddit
Tumblr
Running npm start
will stand your server up and you can view the Swagger docs by visiting http://localhost:1811/docs.
Edit and create blueprints in the content/blueprints
to add/edit/remove endpoints from your API.
To learn more about the structure of these schemas, see the blueprint documentation
Read more on the Multicolour wiki
MIT New World Code 2016