Geth implementation with node JS on elasticbeanstalk enviornment - node.js

Hi I am working on node with geth it was running fine on my local machine but when i deploy it on elastic beanstalk server when I execute the geth.start code with require gethoptions i get EACCES error.

Related

How to access host nodejs app from docker nuxt app?

I am trying to get my nuxt app working on the production servers. For the local machine, the generated docker image runs well and it can access the nodejs app that runs on localhost. The axios 'baseurl: http://127.0.0.1:6008/' seems working fine, the docker image can access this. On the production servers, i have used docker to setup the nuxt app, the same way i tested on my local machine. Yet the docker nuxt app cannot reach the nodejs app on the host server. I can see this must be some kind of network setting issue.
In vuejs app, i usually setup a proxypass in the apache web conf, to convert the input backend query to match and replace them with localhost address.
ProxyPass /app/query http://localhost:6008/query
The nuxt.config file, axios setting looks lik this:
axios: {
baseURL:'http://127.0.0.1:6008/',
browserBaseURL: ''
},
Does docker needs additional settings or should i configure my apache for this communication between my docker container and a node app that running on host apache pm2 ?
localhost or 127.0.0.1 from within the docker will not resolve to the server's localhost. Instead you need to specify the name of the nodejs service (if you are using docker-compose) or the nodejs docker container name (if you are just using docker run).
You can also try by giving the IP of the server where the docker is running instead of 127.0.0.1

Getting REACT App running on port 3001 to show on AWS EC2 Http port 80

I deployed a REACT application on an AWS EC2 running Ubuntu by cloning my github repository and installing node and npm. I tried running the application after installing all of the dependencies and it finally says:
Project is running at http://localhost:3001/
How do I make the running project show up on the http(80) port of the EC2?
Inbound ports open: 80, 443 and 22.
Please install nginx on your EC2 instance which will serve your frontend.
Follow the below blog for steps
https://dev.to/xarala221/the-easiest-way-to-deploy-a-react-web-application-2l8a
Thanks

Heroku Deployment 404 Error with Node.js and Express.js Server

Anyone willing to help with a Heroku Deployment?
When I run my local repo the server works great but once I deploy it on Heroku I get a 404 Error.
I am using Node.js Express Server.
The server console is suppose to generate: Listening on port 5000!
The error I get instead is: {"error":{"message":"Error not found in app.js"}}
Git Hub Repo
https://github.com/instant-help/instant-help-backend
Deployed Repo
https://thawing-river-10076.herokuapp.com/

Nodejs app working on localhost but crashes on heroku

My nodejs app is working on localhost but when deployed with heroku, it crashes showing me one new module or the other that it cannot find. What do I do?

Why is my nodejs express server connecting to the MongoDB on my local machine and the AWS EC2 Instance

I have a MongoDB running on my local machine and another MongoDB running on the AWS EC2 instance where my express server and my angularjs web app is installed. That is:
On my local machine (Windows environment), running:
MongoDB
Nodejs Express server
On AWS EC2 instance (ubuntu), running:
MongoDB
Nodejs Express server
AngularJS web app
When I browse my web side running on AWS EC2 instance (using https://ec2_public_ip:3443/home/app/index.html), it retrieves data from the MongoDB running on my local machine. If I shut down the MongoDB and Express server on my local machine, I get Failed to connect to resource error. Why is my express server not connecting to the MongoDB running on AWS?
This is my connection string in the app.js file:
'mongoUrl' : 'mongodb://localhost:27017/myMongodatabase',
I also tried
'mongoUrl' : 'mongodb://0.0.0.0:27017/myMongodatabase',
Both did not work on my AWS instance.
I'm learning to use MongoDB, AWS, Express and now I am confused. Any help is appreciated.

Resources