Giter VIP home page Giter VIP logo

bitespeed's Introduction

Bitespeed Backend Application - Customer Identification Service

This repository contains the implementation for Bitespeed's customer identification service as per the provided assignment.

Assignment Overview

Bitespeed needs a web service with an endpoint /identify that receives HTTP POST requests with a JSON body containing either an email or a phoneNumber. The service should return an HTTP 200 response with a JSON payload containing the consolidated contact details.

Technical Specifications

  • Endpoint: /identify
  • Method: HTTP POST
  • Request Body:
    // either email or phoneNumber is required
    {
        "email": "string",
        "phoneNumber": "number"
    }
  • Response Body:
    {
      "contact": {
          "primaryContatctId": "number",
          "emails": "string[]",
          "phoneNumbers": "string[]",
          "secondaryContactIds": "number[]"
      }
    }

Tech-stack

  • Express.js (with Typescript and ZOD)
  • Swagger UI
  • Render for Deployment
  • Docker for Containerization
  • Prisma+Supabase for Postgres

Curl-Definition

Note: This service is deployed on Render.com's free tier. Hence, initial request will take about a minute to spin up the server.

curl -X 'POST' \
  'https://bitespeed-fyyp.onrender.com/identify' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "[email protected]",
  "phoneNumber": "9999999999"
}'

Swagger UI: https://bitespeed-fyyp.onrender.com/api-docs

bitespeed's People

Contributors

shashankdaima avatar

Stargazers

 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.