Grasshopper-CMS
Requires Node 6+.
Demo Project at https://github.com/grasshopper-cms/grasshopper-demo .
Docs at http://docs.grasshopper.ws . The below is an excerpt from the docs:
Quick Start
This is how to get started using Grasshopper.
Grasshopper is a headless CMS with an admin. It can be used to build both apis and websites.
To get started require grasshopper-cms and init with your config object:
const express = ;const app = ;const grasshopper = ; grasshopper start app express // Other configs here
For an example config object see the grasshopper-demo.
In the example above, app
is a standard express app. You can set it up as you normally would for a website or api.
You can inform your models with queries via grasshopper.authenticatedRequest
, the grasshopper api is running at /api
,
and you can view the admin at https://localhost:3000/admin .
Queries
Queries are promise based. Query content involves looking for content by _id
, by querying for fields on the document, or query for meta
data on the document.
A Grasshopper content item has this form:
The keys for meta
are stable. The keys for fields
are defined in the admin by modifying the content type.
So querying all
return ghService authenticatedRequestcontent
Note: Update the Release Notes when publishing new versions.