Giter Site home page Giter Site logo

mieltn / agora-hack Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 16.08 MB

service for data processing from ERP systems and marketplace to receive processed data

Python 97.75% HTML 2.25%
django docker docker-compose mongodb postgersql django-rest-framework

agora-hack's Introduction

Data processing service and marketplace simulation

The project consists of 2 django projects:

  • marketplace simulation, that supports methods for adding products, measure units and categories to backend Postgres, and requesting processing service for data upload
  • processing service, that receives XML data via POST request from Enterprise Resource Planning system, converts it to JSON and sends to the marketplace endpoints by request

How to start the API from Docker

  1. git clone https://github.com/mieltn/agora-hack.git -b develop
  2. docker compose build to build Docker images. You need to have Docker and Docker Compose installed.
  3. docker compose up to start the marketplace (port 3000) and the processing service (port 2000). Both will be available on http://0.0.0.0:{port}/

Functionality and testing

  • To test both services first a POST request to http://0.0.0.0:2000/uploadxml/ with XML body from testing should be sent. Data will be converted to JSON and stored in MongoDB on the processing server's side.
  • To test getting data from processing service a GET request should be send to the marketplace http://0.0.0.0:3000/upload/. Marketplace will ask processing service to send preprocessed data.
  • After receiving the feedback you can enter Postgres on the marketplace's side to inspect uploaded data with SQL.
  • If you want to upload data once again it's better to clear MongoDB on the processing service's side and Postgres on the marketplace's side.
  • If testbigdata.xml will be used, be prepared to wait around 5 minutes until all new items will be written to the marketplace's database.

agora-hack's People

Contributors

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