docker-comopse with react/node.js (express) / mongodb retuns ERR_EMPTY_RESPONSE localhost:3001
Budget: $10 – $30 USD
✔ 30$ is my expectation
does somebody help me . this doesnt work . i will attach only
react -----------------------------> express ( node.js ) ------> mogo
http://localhost:3001/ mongodb://localhost:27017
============
react
============
function addTodo(text) {
fetch("http://localhost:3001/", {
headers: {
~~~~
},
============
express (node.js)
database.client = await MongoClient.connect('mongodb://localhost:27017/todo', { useUnifiedTopology: true });
============
i checked docker-compse.yml 's hostname or .env or something
does somebody help me . this doesnt work . i will attach only
react -----------------------------> express ( node.js ) ------> mogo
http://localhost:3001/ mongodb://localhost:27017
============
react
============
function addTodo(text) {
fetch("http://localhost:3001/", {
headers: {
~~~~
},
============
express (node.js)
database.client = await MongoClient.connect('mongodb://localhost:27017/todo', { useUnifiedTopology: true });
============
i checked docker-compse.yml 's hostname or .env or something