/fake-registry

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Fake Registry

This server generates random registry with italian names, with GDPR Prospect purpouse in mind.

Features

  • generates new registry prospect
    • name, surname, address, province, sex - not mandatory
    • physical person or company (persona giuridica)
    • GDPR contacts (address, phone, email)
    • several Privacy consents
    • last update, last state update
    • cold and warm prospect
  • generates italian fancy names, simple or composite
  • data are compliant with prospect state

Installation

Requirements

Node v6 or greater.

Getting started

Download and install dependencies

npm i or yarn install

Start the application

npm start or yarn start

Try to call the new API via browser or Postman

http://localhost:3000/prospect/:randomId

Data

The following is an example of a random data generated by the API

{ "idProspect": { "id": 2, "name": "COMPANY" }, "name": "Piero Maria", "surname": "Benso", "gender": "M", "province": "Bari", "lastStateChange": "2012-11-28T19:39:58.889Z", "lastUpdate": "2015-07-01T22:57:33.130Z", "consent": { "generic": false, "marketing": false, "marketingThirdPart": false, "thirdPart": false }, "address": "lungomare Barletta Andria Trani 34 - Bari", "email": "suwuqohu@levissima.eu", "phone": null }