GithubHelp home page GithubHelp logo

identity-reconciliation's Introduction

Identity Reconciliation

A way to identify and keep track of a customer's identity across multiple purchases. - BiteSpeed

Tech Stack

  • Node.js
  • Express.js
  • Postgres
  • TypeScript

Installation (Easiest Way)

  • Using ThunderClient/Postman and using the URL: https://identity-reconciliation-api.onrender.com/

Installation (locally)

  1. Clone the repository:

    git clone https://github.com/GauthamSree/Identity-Reconciliation.git
    cd Identity-Reconciliation
  2. Set up your Postgres database and update the .env file with your database configuration.

    TABLE Contact {
        id                   Int                   
        phoneNumber          String?
        email                String?
        linkedId             Int? // the ID of another Contact linked to this one
        linkPrecedence       "secondary"|"primary" // "primary" if its the first Contact in the link
        createdAt            DateTime              
        updatedAt            DateTime              
        deletedAt            DateTime?
    }
    
    CREATE TABLE Contact ( 
        id SERIAL PRIMARY KEY, 
        phoneNumber VARCHAR(10), 
        email VARCHAR (255), 
        linkedId INT, 
        linkPrecedence VARCHAR (25),
        createdAt TIMESTAMP NOT NULL,
        updatedAt TIMESTAMP NOT NULL,
        deletedAt TIMESTAMP);
  3. Build and run the TypeScript code:

    npm install
    npm run dev

API Endpoints

  • GET /welcome
    • Returns a welcome message.
  • POST /findIdentity
    • Accepts JSON data with email and phoneNumber, and returns contact information.

Directory Structure

  • src/ - Contains the TypeScript source code.
  • src/models/ - Contains the data models.
  • src/routes/ - Contains the API routes.
  • src/services/ - Contains the business logic.
  • src/db.js - Configuration for connecting to the database.
  • package.json - Project configuration and dependencies.
  • tsconfig.json - TypeScript compiler configuration.

Contributing

Contributions are welcome! Please create an issue or pull request for any improvements or bug fixes.

identity-reconciliation's People

Contributors

gauthamsree avatar

Watchers

 avatar

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.