Giter Site home page Giter Site logo

nebo15 / eview Goto Github PK

View Code? Open in Web Editor NEW
4.0 14.0 6.0 193 KB

Nebo #15 Views for our Elixir API applications.

Home Page: http://docs.apimanifest.apiary.io/

License: MIT License

Shell 0.11% Elixir 99.89%
api viewmodel hex elixir package elixir-lang

eview's Introduction

Demo

In Nebo #15 we have our own API design manifest, and we trying to follow it.

This package extracts all common patterns and utilities, to remove boilerplate from business-logic services.

Installation

The package can be installed as:

  1. Add eview to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:eview, "~> 0.12.1"}]
end
```
  1. Ensure eview is started before your application:
```elixir
def application do
  [applications: [:eview]]
end
```

The docs can be found at https://hexdocs.pm/eview.

eview's People

Contributors

alexkovalevych avatar andrewdryga avatar gmile avatar imax-iva avatar pavelvesnin avatar samorai avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eview's Issues

Exposing private APIs

CONTAINER_HTTP_HOST is used internally in eview, and starts to being relied upon in libraries out there. Right now this variable along with it's _PORT sister is a private API.

I think exploiting private APIs should rarely, if ever, be the case. CONTAINER_HTTP_HOST must become public in some form, or explicitly discouraged to be relied upon.

Current name also has a potential to clash with an env var from some app in the wild that decides to use eview.

I think a better way to handle this would be:

  1. turn HOST/PORT into config values, e.g. :eview_test_host etc. (preferable, IMO),
  2. rename CONTAINER_HTTP_HOST into EVIEW_HTTP_TEST_HOST (thus clearly stating that the variable is related to eview)

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.