Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.01 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.01 KB

Oligrapher 2 Stand-alone backend

This application provides a minimalistic backend for the storage and management of Oligrapher 2 network storystelling pieces. It is intended as a minimalistic server which stores a packet of JSON with very little introspection, but manage titles and authorized users.

Installation

$ npm install
$ bower install

The following environment variables are required to be set:

Run in development via:

$ node src/server.js

API

  • GET /auth/facebook - begin oauth authorization
  • GET /auth/logout - end a user session
  • GET /api/session - get the current session
  • GET /api/maps - list available maps
  • GET /api/maps/:id - get a full map
  • POST /api/maps - create a new map (need to be signed in)
  • POST /api/maps/:id - update a map (need to be creator)

For POST requests, the title property is required.