How to package & deploy Node.js + express web application?

前端 未结 6 1678
忘掉有多难
忘掉有多难 2020-12-07 09:36

I am new to Node.js programming and I have recently created a sample working web application using (express, backbone & other complimentary view technologies, with mongo

6条回答
  •  佛祖请我去吃肉
    2020-12-07 10:23

    I used zeit's pkg module. It can create cross platform deliverables for linux/win/macos. Actually used it in production and works fine without any issues.

    It takes in all the js scripts and packages it into a single file.

    The reason I used it is because it helps in securing your source code. That way in production at customers environment they will have access to application but not the source code.

    Also one of the advantages is that at production environment, you do not actually need to have the customer install node.js as the node binaries also get packaged inside the build.

    https://www.npmjs.com/package/pkg

提交回复
热议问题