How to use open cv with nodejs in production environment

Asked

Viewed 73 times

0

I have an application developed in nodejs in which I use the opencv4nodejs which allows you to use the opencv library in nodejs. The application is ready on local server, but I have no idea how to host this application since the dependency has some particularities. I tried by umbler (nodejs) but as I imagined it is not possible even without the node_modules folder in .gitignore. Can someone please help me make it work in a production environment?

1 answer

1

How’s your package.json? Generally platforms like Umbler do everything automatically from their package.json... Take a look at it. here

  • So, as I said the dependency has some particularities, if you put it in package.json it will give error because in localhost for example you need opencv installed and configure the environment variables otherwise also the error at npm install time.

  • Ah, yes! I get it! The AWS EC2 solves your problem... It is a dedicated machine, you can go up Ubuntu, access by SSH, install Opencv and make the other settings of your application. Remembering that AWS has a free quota for you to do some tests and configure before "to run for real"

  • You can continue using umbler as the host of the app in Node?

  • @lalvesoliveira Please elaborate better the answer and read We want answers that contain only links?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.