How to organize a node app that uses sequelize?

后端 未结 10 577
野趣味
野趣味 2020-12-04 04:54

I am looking for an example nodejs app that uses the sequelize ORM.

My main concern is that it seems next to impossible to define your models in separate js files if

10条回答
  •  感动是毒
    2020-12-04 05:12

    I am looking for an example nodejs app that uses the sequelize ORM.

    You might be interested in looking at the PEAN.JS boilerplate solution.

    • https://github.com/StetSolutions/pean

    PEAN.JS is a full-stack JavaScript open-source solution, which provides a solid starting point for PostgreSQL, Node.js, Express, and AngularJS based applications.

    The PEAN project is a fork of the MEAN.JS project (not to be confused with MEAN.IO or the generic MEAN stack).

    • https://github.com/meanjs/mean

    PEAN replaces MongoDB and the Mongoose ORM with PostgreSQL and Sequelize. A primary benefit of the MEAN.JS project is the organization it provides to a stack that has many moving pieces.

提交回复
热议问题