Giter Site home page Giter Site logo

juanmamaffei / builders-reactor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from studio-quatro/builders-reactor

0.0 1.0 0.0 66.76 MB

Service to keep up-to-date Builders World website with BuildXAct API.

Shell 0.11% JavaScript 1.04% Ruby 46.76% CSS 0.48% HTML 51.55% Procfile 0.06%

builders-reactor's Introduction

README

Versions

  • Ruby 3.1
  • Rails 7.0.3

Instructions to run locally

  • Bundle dependencies.
  • Create database with rails db:create.
  • Run migrations with rails db:migrate.

Deploy on Heroku

Deploy

Env variables

To login:

ADMIN_USERNAME=
ADMIN_PASSWORD=

Description

This repository stores a microservice to keep two external services via API Rest up-to-date: Builders World store and Buildxact catalog.

The main idea is to serve as a chain of responsibility to make the following steps:

  • Obtain data of products from Builders World shop.
  • Obtain data of categories from Builders World shop.
  • Obtain data from products from a Buildxact catalog.
  • Obtain data from products from a Buildxact catalog.
  • Map products between both services.
  • Map categories between both services.
  • Make a list of differences using the last update date (with Builders World as the source of truth).
  • Perform the required changes in the list on Buildxact API.

This chain allows you to understand the main functionality requirements.

Some of the non-functionality requirements are:

  • Login required (with fixed admin user). Credentials could be set via env vars.

  • Should be running automatically once a week.

  • Should support an average of 3000 products and 400 categories serving the whole process less than 4 hours.## Versions

  • Ruby 3.1

  • Rails 7.0.3

Instructions to run locally

  • Bundle dependencies.
  • Create database with rails db:create.
  • Run migrations with rails db:migrate.

Deploy

  • Copy master.key
  • Set ENV vars as shown on .env.example.

Gem to configure some cositas

https://github.com/huacnlee/rails-settings-cached

Files involved on B.L.

image

Diagrams

image

image

Architecture

Layers and design patterns

image

image

builders-reactor's People

Contributors

juanmamaffei avatar

Watchers

James Cloos 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.