8000 GitHub - voorhoede/voorhoede-colibri-api: A RESTful and a GraphQL API exposing Voorhoede website content.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

voorhoede/voorhoede-colibri-api

Repository files navigation

Voorhoede Colibri API

A RESTful and a GraphQL API exposing Voorhoede website content.

The API is backed by a DatoCMS instance where content is managed.

The API and its documentation is available on voorhoede-colibri-api.now.sh. Note that because it runs on the free tier of Now, it needs to spin up if it isn’t used for a while — which makes it slow the first time ’round 😴.

Devices and appliances connected to the API

Development

Getting started

  • Clone the repository.
  • Copy .env.example to .env. You can find the DATA_API_TOKEN in the CMS settings > API Tokens. The CMS can be accessed using the shared@voorhoede.nl account (details in LastPass).
  • Run npm install. Then use any of the pre-configured scripts.

Scripts

This project requires Node.js (>= v8) and npm (comes with Node).

After installing dependencies using npm install the following scripts are available:

npm run ... Description
data Downloads all data from CMS to the file system.
deploy Deploys application to now and aliases latest deploy to voorhoede-colibri-api.now.sh.
dev Starts local server with auto restart on file change on http://localhost:2473.
start Starts local server in production mode on http://localhost:2473.
test Run automated endpoint tests.
watch Run tests on file changes.

License

MIT licensed © De Voorhoede

About

A RESTful and a GraphQL API exposing Voorhoede website content.

Topics

Resources

License

Stars

Watchers

Forks

Releases

42D9
No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0