Giter VIP home page Giter VIP logo

2001058's Introduction

My 2001058 Repository

Number Management Service

The Number Management Service is a lightweight HTTP microservice designed to retrieve data from multiple URLs, process the data, and return a sorted list of unique integers in ascending order. It was created as a coding assessment to showcase a simple yet efficient implementation that adheres to the specified requirements.

Features

  • Process multiple URLs provided via query parameters.
  • Retrieve JSON data from each valid URL.
  • Merge unique integers from the fetched data.
  • Return merged integers in ascending order.
  • Respect a timeout for each URL request, ensuring responsiveness.

Getting Started

Prerequisites

Before you start, make sure you have the following:

  • Node.js (v18.17.1 or compatible)
  • npm (Node Package Manager)

Installation

  1. Clone the repository:

    git clone <repository_url>
    

Navigate to the project directory:

bash Copy code cd number-management-service Install dependencies:

bash Copy code npm install Usage Start the microservice:

bash Copy code node index.js Access the microservice API using tools like curl, Postman, or a web browser:

http Copy code GET http://localhost:3000/numbers?url=http://20.244.56.144/numbers/primes&url=http://abc.com/fibo Replace the URLs with valid URLs that return JSON data in the specified format.

Troubleshooting If you encounter errors while fetching data from URLs, ensure the URLs are accessible and provide the expected JSON data. Check network connectivity and ensure there are no restrictions preventing outgoing HTTP requests. Notes This project is a coding assessment and is not intended for production use. The provided timeout (500 ms) is strictly adhered to for each URL request, which may lead to skipping URLs that take longer to respond. Your feedback is valuable! If you have any suggestions or encounter issues, please don't hesitate to let us know.

Created by Dhruv kumar Shukla.

Screenshots

Image1 Image2 Image3

2001058's People

Contributors

dhruvk2002 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.