Giter Club home page Giter Club logo

log-parser-api's Introduction

Introduction

Simple application to parse an error log file to aggregate total errors produced by instances of a replicated application as well as total number of errors per replica.

Assumptions

The application is designed with the spcified requirements and some additional assumptions in mind:

  • There's multiple applications errors in a log
  • We want to target specific application
  • We want to target specific instances

Usage

Hot reloading is enabled to facilitate rapid testing and tight-feedback during development. Follow the steps below to being developing additional features:

CI/CD

Brings up the containers, executes the integration test and shut down.

make test

Development

Brings up the containers (app & test) for development purposes. The code gets mounted into the contianer and the application hot-reloads to pick up changes -- same applies to the test container.

make dev

API Only

Bring up just the API by running the following command:

make up

Browser Testing

Below are endpoints that you can test via your browser. Note that you may need to change the port if 3000 is already allocated on your machine.

Shutting down

To kill the running containers, run:

make down

API Validation

Validating and testing API payload request and responses is done via OpenAPI 3 specification. See api.yaml to better understand the API contract.

log-parser-api's People

Contributors

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