Put a read-only API in front of a google spreadsheet for easier consumption.
- There is one resource
GET /rowsthat maps directly to the rows in the backing spreadsheet. - row columns are normalized into
camelCaseproperties, so "Needs volunteers?" turns intoneedsVolunteers - get a specific row by its id
GET /rows/0/ - filtering rows by value:
GET /rows?neighborhood=Midway - sort and limit:
GET /rows?neighborhood=Midway&$limit=1&$sort[nameOfOrganization]=-1 - See docs for more!
- PUT/POST/PATCH/DELETE will return a
501 Not Implemented
This project uses Feathers. An open source web framework for building modern real-time applications.
Getting up and running is as easy as 1, 2, 3.
-
Install your dependencies
cd path/to/nice-api npm install -
Copy
config/local-example.jstolocal.jsand fill in the required settings. -
Start your app
npm start
To run in production, be sure to set the environment variables specified in config/production.json (PORT, SHEET_ID, API_KEY, etc). Check the node-config documentation for additional config options.
Simply run npm test and all your tests in the test/ directory will be run.
Feathers has a powerful command line interface. Here are a few things it can do:
$ npm install -g @feathersjs/cli # Install Feathers CLI
$ feathers generate service # Generate a new Service
$ feathers generate hook # Generate a new Hook
$ feathers help # Show all commands
For more information on all the things you can do with Feathers visit docs.feathersjs.com.