Giter Site home page Giter Site logo

lzhuor / net-promoter-score-collector Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 807 KB

This is a NPS collector made by John with Spring Boot + Vue. It aims to replicate the same feature built by Zendesk which requires a commercial license and is expensive.

HTML 63.16% JavaScript 11.38% Vue 5.16% Java 18.64% CSS 1.67%

net-promoter-score-collector's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @lzhuor

net-promoter-score-collector's People

Contributors

dependabot[bot] avatar lzhuor avatar

Stargazers

 avatar

Watchers

 avatar  avatar

net-promoter-score-collector's Issues

(feat) Expose data in MongoDb repository using QueryDSL and Spring Data Pageable

Refactor GET /api/v1/nps-questions:

  • Integrate QueryDSL with Spring Data MongoRepository<T, ID> interface so we can expose a DSL style query endpoint which enables the user to filter and paginating responses using request parameters.

Example: GET /api/v1/nps-questions?isAnswered=false;customerReference=John will be parsed to a Predicate object and passes down to Repository. A Spring Data Page<T> object will be returned. The response payload looks like below:

{
    "content": [
        {
            "id": "5a4092fa5f0f566790b8b69f",
            "answer": null,
            "customerReference": "test",
            "createdAt": "2017-12-25 05:56:10",
            "answeredAt": null,
            "answered": false
        }
    ],
    "totalElements": 1,
    "last": true,
    "totalPages": 1,
    "size": 10,
    "number": 0,
    "sort": [
        {
            "direction": "ASC",
            "property": "answeredAt",
            "ignoreCase": false,
            "nullHandling": "NATIVE",
            "ascending": true,
            "descending": false
        }
    ],
    "first": true,
    "numberOfElements": 1
}
  • Added Spring Boot Data Pageable

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.