Giter VIP home page Giter VIP logo

boar-server's People

Contributors

arnaudbuchholz-sap avatar bankyadam avatar drawain avatar ettancos avatar felin-arch avatar gabor-balla-emarsys avatar gabordobrei avatar hawser86 avatar jzsfkzm avatar knagy avatar m4w4q7 avatar miklos-martin avatar sonicoder86 avatar szeist avatar szenti avatar valetudox avatar wilzi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

boar-server's Issues

Having src folder for: server, worker, bin

PaS providers like Heroku expecting the server, worker, bin (scheduler for example) and clock (clock process) code in the same deployed directory.
It's possible to do now in the boar-stack if you put everything under the server dir and keep client as it is. Because in this case it will be copied during the build under the dist, what will be deployed to Heroku.
It would be more cleaner to having an src directory which can contain server, worker, bin, clock and the builded client after build.

In nutshell I recommend to include a new dir level the src and copy it during the build instead of the dist.

In this case the Procfile can be:

web: node server           // server/index.js
worker: node worker      // worker/index.js
clock: node clock           // clock/index.js

Migration to boar-server version 9 broke koa v1, need to migrate to koa v2

Packages that were updated in boar-server are not compatible with koa@1, especially koa-router which breaks compatibility at v7.

We had to migrate our app to koa v2 which required some changes to adapt generator functions into asynchronous function (with the help of co).

I see several ways to workaround :

  • Either we revert back to router v7 (which is really old)
  • Or we encapsulate some of the required transformations inside boar-router (in particular the controllers loading)

See the following commit for details.

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.