Code Monkey home page Code Monkey logo

h2's Introduction

H2

A microservices framework that powers all of Hailo.

What's Missing

Currently, we are shipping a few compiled services, we aim to open source them once we have cleaned the source code up and pointed them to compile against this repository instead of our private forks. This covers:

  • Config service
  • Binding service
  • Dashboards
  • Gateway
  • http2rpc service
  • Login service
  • Discovery service
  • Web discovery service

Getting Started

Developing Services

To develop your own applications, or to take H2 for a spin, you will need to start by creating a working development environment, instructions can be found in the provisioning repository website.

API Documentation for the this repository can be found on godoc.org (https://godoc.org/github.com/hailocab/H2).

Packages

The packages consumed by this repository have been split into two repositories platform-layer and service-layer. These are the same packages that internal closed source applications use.

Our have been split into logical groups, the service layer repository handles most of the non functional requirements for our platform, as well as providing ways of talking to our shared infrastructure.

The platform layer handles the underlaying application structure, ensuring an application is built in similar ways consistently.

Example Application

We have included a small example application, which will tell you how many services are currently running on your development environment.

To build this service, it's as easy as go build (Note: To run this on the VM, you will need to cross compile the binary http://dave.cheney.net/2015/08/22/cross-compilation-with-go-1-5). Running the service locally, outside of the development environment, requires a set of environment variables to be set.

  • H2_RABBITMQ_URL value: amqp://guest:guest@<virtual machine ip>:5672
  • H2_CONFIG_SERVICE_ADDR value: http://<virtual machine ip>:8097
  • H2_CASSA_DEFAULT_ADDR value: <virtual machine ip>:9160

So you could end up with a command that looks like:

$ env \
  H2_RABBITMQ_URL=amqp://guest:[email protected]:5672 \
  H2_CONFIG_SERVICE_ADDR=http://192.168.33.10:8097 \
  H2_CASSA_DEFAULT_ADDR=192.168.33.10:9160 \
  hello-world

Developing The Platform

Please see CONTRIBUTING.md

Metadata

Licensing

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Maintainers

Please see MAINTAINERS.md

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.