Coder Social home page Coder Social logo

kafka-mongo-project's Introduction

MongoDB-Kafka-Node.js with Docker Compose

This is a node.js application that uses Kafka and MongoDB to process data.

Creating and Running the Containers

Follow the steps below to create and run the containers:

  1. Clone the repository to your local machine.
  2. Navigate to the root directory of the repository.
  3. Run the following command to build the containers:
    docker-compose build
    
  4. Run the following command to start the containers:
    docker-compose up
    

This command will start the Kafka and MongoDB containers and run the consumer and producer containers.

The producer container will generate data and send it to the Kafka topic. The consumer container will consume the data from the Kafka topic and store it in the MongoDB database.

To view the data in the MongoDB database, you can connect to the mongo1 container and run the mongo command-line tool.

docker exec -it mongo1 mongo

This will open the MongoDB shell and provide an environment where you can run commands to view the data.


Dockerhub image links

kafka-mongo-project's People

Contributors

melihafsar avatar

Watchers

Halil Özkan 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.