googlemaps / transport-tracker

Applications for tracking moving assets on a live map
Apache License 2.0
574 stars 442 forks source link

Error With Backend #56

Open jackstmary opened 6 years ago

jackstmary commented 6 years ago

I have tried the things listed in the other comments on why backend isnt working and I still am having problems trying to run backend "npm run main" I am getting. npm ERR! path /home/jtstmary2023/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open '/home/jtstmary2023/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /home/jtstmary2023/.npm/_logs/2018-11-02T19_14_24_032Z-debug.log

Can anyone help?

rahulmittal4233 commented 5 years ago

I am facing the same issue. Were you able to resolve??

jpoehnelt commented 5 years ago

Have you tried building from the Dockerfile?

cd backend
docker build -t backend .
docker run --name backend backend

Note the last step will fail unless you swap in a service account json at https://github.com/googlemaps/transport-tracker/blob/master/backend/serviceAccountKey.json.