Project create at the 4th edition of Next Level Week by Rocketseat.
Net promoter score (NPS) is a widely used market research metric that is based on a single survey question asking respondents to rate the likelihood that they would recommend a company, product, or a service to a friend or colleague.
# Install Dependencies
$ yarn install
# Create the database
$ yarn typeorm migration:run
# Run Aplication
$ yarn dev
# To run the test use
$ yarn test
- http://localhost:3333/users (create user)
- http://localhost:3333/surveys (create survey)
- http://localhost:3333/sendMAil (send email)
- http://localhost:3333/surveys (shows all registered surveys)
- http://localhost:3333/answers/:value (records the response that a user gave to the survey)
- http://localhost:3333/nps/:survey_id (calculates the NPs of a given research from its ID)