| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
NodeJS API using express, pg-promise, and bluebird. The code structure is inspired by this pg-promise demo and this more general tutorial.
You can browse the OpenAPI definition for the main branch here, and for the live API here.
Live at https://fallingfruit.org/api/0.3 and powers https://fallingfruit.org (falling-fruit-web).
Clone the repo and change into the new directory.
git clone https://github.com/falling-fruit/falling-fruit-api
cd falling-fruit-apiInstall the node version specified in the .nvmrc file. This is easiest using nvm.
nvm install
nvm useyarn is already provided (see .yarn/releases). Use it to install dependencies.
yarnCopy .env.example to .env and update the values as needed.
cp .env.example .envyarn startVisit http://localhost:3300.
Validate and build the OpenAPI documentation:
yarn validate && yarn build| Back | FazBrowse Home | New Git URL |