Coder Social home page Coder Social logo

cariost / quarkus-robotostore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marcozfr/quarkus-robotostore

0.0 1.0 0.0 192 KB

A supersonic subatomic Robotostore

JavaScript 3.64% Shell 0.51% Java 36.04% HTML 23.24% Dockerfile 0.12% TypeScript 33.25% SCSS 3.20%

quarkus-robotostore's Introduction

Quarkus RobotoStore

By Marco Flores @marcozfr

Robots lovingly delivered by Robohash.org

Descripción

El proyecto demo muestra la interacción entre microservicios basados en Quarkus de acuerdo al siguiente diagrama:

Está compuesto por los siguientes microservicios:

  • Ordenes
  • Productos
  • Usuarios

Entre estos se puede encontras las implementaciones de:

  • CDI
  • Mutiny
  • Microprofile (Rest Client, Fault Tolerance, Circuit Breaker, Health)
  • Panache for MongoDB
  • Panache for SQL (PostgreSQL)
  • Kafka Operations

Ejecución

Modo JVM

Compilar el proyecto angular

cd storefront
npm install
ng build --prod
cd ..

Volver a la raiz y para levantar los servicios de la infraestuctura local, ejecutar:

docker-compose  up

Ejecutar en modo desarrollo los microservicios orders, products, users:

cd users
mvn quarkus:dev
cd orders
mvn quarkus:dev
cd products
mvn quarkus:dev

Crear una tabla Users en DynamoDB con llave 'username'.

Para ello ingresar a http://localhost:8000/shell y ejecutar:

var params = {
    TableName: 'Users',
    KeySchema: [ 
        { 
            AttributeName: 'username',
            KeyType: 'HASH',
        }
    ],
    AttributeDefinitions: [ 
        {
            AttributeName: 'username',
            AttributeType: 'S', 
        }
    ],
    ProvisionedThroughput: { 
        ReadCapacityUnits: 1,
        WriteCapacityUnits: 1,
    },
};

dynamodb.createTable(params, function(err, data) {
    if (err) ppJson(err); 
    else ppJson(data); 
});

Asimismo, ingresar una data de prueba:

var params = {
    TableName: 'Users',
    Item: { 
    
        'username': 'marcozfr',
        'countryCode': 'PE',
        'createdDate' : 1602288000000
    }
};
docClient.put(params, function(err, data) {
    if (err) ppJson(err); 
    else ppJson(data);
});

Y listo!

Para ingresar a la tienda RobotoStore, ingresar a: http://localhost:4000

quarkus-robotostore's People

Contributors

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