Code Monkey home page Code Monkey logo

lab-1-the_bazar's Introduction

forthebadge made-with-python

forthebadge

forthebadge

Steps to run the project

  1. It is advisable to create and activate a virtualenv before starting the project. However it is not a requirement to run the project.
  2. The application can be started by running a single bash script run.sh inside src folder.
  3. Make sure that you current directory is src and then run bash run.sh host_name <number_of_peers>
  4. Hostname is a mandatory parameter and needs to be passed as a command line argument for the program to start.
  5. Number of peers is optional paramter if passed the network will generate a network with equivalent number of peers otherwise it will default to six peer network based on the default config provided in config_file.
  6. A sample run command might look like bash run.sh localhost 10 or bash run.sh localhost
  7. In first case a 10 peer network will be created whereas in the second a network of 6 peers will be created.
  8. The output of the program after running the network for a few minutes is present in src/tmp/output/output.txt
A know issue

We have used matplotlib to show a graphical representation of the network. Plotting of graph might not work iff a GUI backend is not present. This issue can be resolved in two ways.

  1. pass show_bazar argument as false when calling create_bazar function from main. This will prevent graph_generator to be invoked and hence resolving the error. However in this way the graphical representation of the network won't pe drawn.
  2. Another way is to install a GUI-backend for matplotlib python sudo apt-get install python3-tk

Documentation links

1 problem_statement

2 design_doc

3 experiment_doc

4 testing_doc

lab-1-the_bazar's People

Contributors

alokrkmv avatar saurabhbajaj123 avatar

Watchers

 avatar

Forkers

saurabhbajaj123

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.