googlemaps / transport-tracker

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

Missing script in transport-tracker/admin/package.json #34

Closed leonharbour closed 6 years ago

leonharbour commented 6 years ago
transport-tracker/admin/>npm run main
npm ERR! missing script: main

transport-tracker/admin/package.json "main": "index.js"

{
  "name": "admin",
  "version": "1.0.0",
  "description": "Transport Tracker admin",
  "main": "index.js",
  "author": "Stephen McDonald <stephenmcd@google.com>",
  "license": "Apache-2.0",
  "repository": {
    "type": "git",
    "url": "https://github.com/googlemaps/transport-tracker.git"
  },
  "dependencies": {
    "ejs": "2.5.5"
  }
}
kbihani commented 6 years ago

Facing the same issue. Any leads on how to solve this?

leonharbour commented 6 years ago

I was able to display some content by accessing the admin folder via a web server. But I don't believe it was built to be used in that way.

It feels like an unfinished showcase project.

domesticmouse commented 6 years ago

@stephenmcd

stephenmcd commented 6 years ago

But I don't believe it was built to be used in that way.

That's the correct way to access it - the JS is client-side and package.json exists so that the dependencies can be installed.