GithubHelp home page GithubHelp logo

amor's Introduction

amor(WIP)

Like microservice providing a simple REST API in conjunction with Kafka.

Maintainer: Joel Roxell <[email protected]>

TL;DR

TOC

Dependencies

  • Kafka
  • MongoDB
  • Redis

API

This service provides a Kafka/JSON REST API.

Create Like

POST /like Creates a new like. : REQUEST BODY

** NOTE:** time must be a string that can be parsed by Date()

{
  "entity": "<string required>",
  "userIds": "<[string]>"
}

RESPONSE

HTTP 201 - Like successfully created

{ "message": "success" }

HTTP 400 - Severity input invalid

{ "message": "invalid request body" }

Create Container

Kafka topic: amor_create_container

value

{ "meta": { "createdBy": "kafka" } }

Add User Like

Remove User Like

Update Like TYPE

Models

User

Like

Development

Prerequisites

To be able to get this project up and running, you'll need:

  • Docker
  • Docker Compose
  • Maven

Usage

Follow these steps to get going:

Tools & Scripts

SCRIPT USAGE CAVEATS
mvn clean Runs all unit tests using mocha
mvn package Build a new jar file with dependecies.

Environment

VARIABLE DESCRIPTION
NODE_ENV Sets the application to either production or development mode
LOG_FILE Decides where our log file will be stored

Contributing

This service has the following standards & workflows:

  • Master branch should always be ready to deploy to production
  • Pull requests with failing tests will be closed.
  • This document should be filled out and up to date.

Testing

TODO

amor's People

Watchers

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