Scrapes Freecycle groups and creates API from data. Scraper based off Hughjmp's work.
Create a new database (Recommended: https://mlab.com) with a collection called 'posts' and set MONGODB_URL as the database url provided in Freecycle-API/app/.env.example. Then rename .env.example to .env.
$ cd Freecycle-API/
$ npm install
Development
cd Freecycle-API/
npm run dev
Production
$ cd Freecycle-API/app/
$ npm run start
The API uses Zeit Now.
$ npm install -g now
For each environment variable execute the following. This only needs to be done once.
$ now secrets add mongodb-url "<MONGODB_URL>"
$ now -e MONGODB_URL=@mongodb-url
$ cd Freecycle-API/
$ npm run deploy