GithubHelp home page GithubHelp logo

brainhubeu / hadron Goto Github PK

View Code? Open in Web Editor NEW
133.0 133.0 13.0 868 KB

⚛️Framework for building a testable, modular backend with a dependency injection pattern in plain JavaScript.

Home Page: http://hadron.pro

License: MIT License

Shell 0.37% TypeScript 96.49% Gherkin 0.13% JavaScript 2.72% Dockerfile 0.29%
framework hadron javascript nodejs typescript

hadron's Introduction

Open Source at Brainhub

Brainhub's projects

Open source projects developed by our team:

  • react-permissible - Making the permission management for React components easier.
  • react-carousel - React carousel is a feature-rich, react-way react component that does not suck.

Teammates projects

You can check other open-source projects supported/developed by our teammates:

About

This list is maintained by @adam-golab and the Brainhub development team. It is funded by Brainhub and the names and logos for Brainhub are trademarks of Brainhub Sp. z o.o.. You can check other open-source projects supported/developed by our teammates here.

Brainhub

We love open-source JavaScript software! See our other projects or hire us to build your next web, desktop and mobile application with JavaScript.

hadron's People

Contributors

caderek avatar damian66 avatar danielmarkiel avatar lukasz-pluszczewski avatar marekbrainhub avatar mateusz-brainhub avatar miczeq22 avatar piotr-s-brainhub avatar roberthebel avatar szymonbrainhub avatar

Stargazers

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

Watchers

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

hadron's Issues

Hadron-typeorm is generating wrong repository name for PascalCase class name

Hadron-typeorm is generating wrong repository name for PascalCase class name.
E.g.
If we define models using the Class + Decorators option and the model name is SomeModel, the repositoryName function in the connectionHelper file is generating wrong repository name -> someModelRepository. Where it should return -> somemodelRepository. The whole class/model name should be lowercased.

hadron-express lacking dependency in package.json

Hadron-express package uses http-status library, but has it as devDependency (which is not installed by default). What's worse, for some reason it resulted in node process just exiting silently on my development server but I don't know if it's the package or my configuration to blame.

Node version: 10.1.0
NPM version: 6.0.1
Hadron-core version: 0.0.2
Hadron-express version: 0.0.2

Validator requires manual call

While using validator, we need to import validatorProvider and then manually call it and register result into container. It should be handled automatically with register method

Empty object in response

Hadron returns strings correctly, but when I return object in callback I always get empty object in the response.

Hadron configuration:

hadron(
  app,
  [
    require('@brainhubeu/hadron-express'),
  ],
  {
    routes,
  },
))

Route:

{
  getPost: {
    path: '/posts/:id',
    methods: ['GET'],
    callback: () => {
      return {
        title: 'Some title',
        content: 'Some content goes here',
        tags: [
          'one',
          'two',
          'three',
          4,
        ],
      };
    },
    middleware: [],
  },
}

Postman:
screen shot 2018-05-15 at 09 33 23

Node version: 10.1.0
NPM version: 6.0.1
Hadron-core version: 0.0.2
Hadron-express version: 0.0.2

Cannot handle createConnection error

It is impossible to handle the createConnection error due to console.error(err) which ends the process.

screenshot 2018-10-16 at 16 17 17

In my opinion, there should be a way to handle it outside the Hadron.

Typescript types

I have got few issues with typescript types in Hadron.

At first, I get an error related to declaration files. It shows up to every hadron package when trying to import.

Also, there is no information in the docs about the types and how to import them.
I have tried the solution from hadron-demo (import hadron, { IContainer } [...]) , but intellisense doesn't seem to work, so I have to go through the hadron codebase and look for them.

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.