Coder Social home page Coder Social logo

devleandrodias / challenge-backend-crocs Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 225 KB

This Node.js application is designed to read streaming data from various data sources in the form of IP numbers.

Home Page: https://leandrodbdias.dev

TypeScript 98.88% Shell 1.12%
kafkajs nodejs nodejs-stream redis

challenge-backend-crocs's Introduction

Challenge Backend Crocs

Croct
Location Detector
An application that detects the visitor's location based on the IP address.

Badge Conluída

🎯 Application Summary

This Node.js application is designed to read streaming data from various data sources in the form of IP numbers. It leverages the power of Node.js streams to efficiently process and transform the data. The application then interacts with an external API to perform specific operations with the IP numbers. Finally, the processed data is persisted for further analysis or usage.

Key Features:

  • Utilizes Node.js streams for efficient and scalable data processing.
  • Reads streaming data from diverse sources in IP number format.
  • Interacts with an external API to perform operations on the IP numbers.
  • Implements data persistence to store the processed information.
  • This application provides a streamlined and flexible solution for handling streaming IP data, making it easier to process, interact with an external API, and persist the results for further utilization.

Readers

  • CSV Reader
  • JSONL Reader

Translations

  • CSV Translator
  • SQLite Translator
  • External API Translator

Writers

  • JSONL Writer
  • Kafka Topic Writer

🔨 Tools Used

  • axios
  • colors
  • csv-parse
  • dotenv
  • env-var
  • kafkajs
  • redis
  • reflect-metadata
  • sqlite3
  • tsyringe
  • jest
  • typescript

⚡ How execute the project?

If you don't have kafa and redis you can download with next script

sh scripts/download.sh

Start zookeeper

sh scripts/start-zookeeper.sh

Start kafka server

sh scripts/start-kafka.sh

Install redis server

cd ./apps/redis-7.0.11/ sudo make install cd utils sudo ./install_server.sh

Copy .env file

cp .env.dev .env

Install node using nvm

nvm install

Install node project dependencies

npm install

Start CLI application (Dev mode)

npm run cli:dev

Start CLI application (Production mode)

npm run build && npm run cli:prod

Helpers

You can use helper to consume messages from location-output topic

npm run helper:location-output

Tests

You can see coverage test project with next script

npm run test

📬 Contact

To get in touch, send an email to [email protected] or visit my website https://leandrodbdias.dev

challenge-backend-crocs's People

Contributors

devleandrodias avatar

Watchers

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