Skip to content
Permalink
Branch: master
Commits on Feb 11, 2020
  1. Fix: failing test

    lukePeavey committed Feb 11, 2020
    Update the test for `/quotes/:id`... add the `length` and `tags` fields to expected
    response.
  2. Refactor: controllers

    lukePeavey committed Feb 11, 2020
    - move the filter for quote length into a separate function.
    
    - Instead of listing all the fields that should be included in the
      response, just exclude the ones that we don't want (`__v` and
      `authorId`)
  3. Chore: update packages

    lukePeavey committed Feb 11, 2020
    Update all packages to latest version
Commits on Feb 9, 2020
  1. Fix typo in readme

    lukePeavey committed Feb 9, 2020
  2. Enhancement: sort tags by number of quotes (#24)

    lukePeavey committed Feb 9, 2020
    - Add `sortBy`  params to `/tags` endpoint. Tags can be sorted by
    `name` (default) or by `quoteCount`.
    
    - Update README
    
    Part of issue #8
Commits on Feb 1, 2020
  1. Add type definitions for jest

    lukePeavey committed Feb 1, 2020
    This adds intellisense and autocomplete for Jest in vscode
Commits on Jan 31, 2020
  1. Update CircleCI workflow (#20)

    lukePeavey committed Jan 31, 2020
    - Refactor scripts/seedDatabase
    - Modify circleCI workflow so it can run tests on pull requests
  2. Add a `length` field to `Quote` schema

    lukePeavey committed Jan 31, 2020
    The `length` field indicates the number of characters in the quote.
    This can be used to filter/sort quotes by length (see #19).
    
    - Added field to Quote schema
    - Updated sample data
  3. Refactor randomQuote controller

    lukePeavey committed Jan 31, 2020
    Add a $match stage to aggregation pipeline to support filter params
  4. Add tags to sample data

    lukePeavey committed Jan 31, 2020
    Randomly assign tags to the quotes in sample data.  This is a temporary
    solution to enable testing the tags API (#8) locally.
Commits on Jan 27, 2020
  1. Fix npm security vulnerabilities

    lukePeavey committed Jan 27, 2020
    Ran `npm audit fix`
Commits on Jan 26, 2020
  1. Remove Moesif integration

    lukePeavey committed Jan 26, 2020
Commits on Dec 24, 2019
  1. Fix README links

    lukePeavey committed Dec 24, 2019
  2. Update docs (#13)

    lukePeavey committed Dec 24, 2019
    - Add several live examples to docs
    
    - Add function call to async snippet
  3. Redirect root URL to github repository (#12)

    lukePeavey committed Dec 24, 2019
    Until the website is complete, the root URL https://api.quotable.io/
    will redirect to the github repository page.
Commits on Dec 17, 2019
  1. Fix MongoDB connection settings

    lukePeavey committed Dec 17, 2019
    Should fix failing tests in CircleCI
  2. Use mongo's $sample feature to get random quote

    lukePeavey committed Dec 17, 2019
    This seems to be faster than generating a random number between 0 and
    documentCount, then using `findAll` and `skip`.
  3. Minor performance tweak

    lukePeavey committed Dec 17, 2019
    Instead of making two consecutive database calls (to get paginated
    results and the total number of matching results),  perform both
    operations in parallel.
  4. Refactor: project structure

    lukePeavey committed Dec 17, 2019
    Split routes and controllers into separate files.
Commits on Dec 16, 2019
  1. Update package-lock

    lukePeavey committed Dec 16, 2019
Commits on Oct 4, 2019
  1. Add contribution guidelines (#9)

    lukePeavey committed Oct 4, 2019
Commits on Sep 30, 2019
  1. Bump version

    lukePeavey committed Sep 30, 2019
  2. Update gitignore

    lukePeavey committed Sep 30, 2019
Commits on Sep 25, 2019
  1. Update dependencies

    lukePeavey committed Sep 25, 2019
    Fixes security vulnerability:
    lodash/lodash#4348
Commits on Sep 23, 2019
  1. Fix failing test

    lukePeavey committed Sep 23, 2019
Commits on Sep 19, 2019
  1. Remove downtime notice from readme

    lukePeavey committed Sep 19, 2019
  2. Add message about downtime

    lukePeavey committed Sep 19, 2019
Commits on Jul 1, 2019
  1. Fix entry point

    lukePeavey committed Jul 1, 2019
  2. Add a deploy step to CircleCI

    lukePeavey committed Jul 1, 2019
  3. Add some tests

    lukePeavey committed Jul 1, 2019
  4. Update package details

    lukePeavey committed Jul 1, 2019
Commits on Jun 29, 2019
  1. Fix: app crashing due to invalid version

    lukePeavey committed Jun 29, 2019
    npm ERR! Invalid version: "1.0-beta.1"
  2. Add CircleCI configuration

    lukePeavey committed Jun 29, 2019
  3. Fix bug: GET /random occasionally returns 500 error

    lukePeavey committed Jun 29, 2019
    Issue:
    The logs show that the /random endpoint occasionally responds with a
    500 error (roughly 1 every few thousand requests)
    
    Fix:
    The max value for the random index should be `documentCount - 1`
Older
You can’t perform that action at this time.