memgraph / orb

Graph visualization library
Apache License 2.0
364 stars 17 forks source link

Serving example files not straightforward from README.md #40

Open Josipmrden opened 1 year ago

Josipmrden commented 1 year ago

I executed

  1. npm install
  2. npm run build
  3. npm run serve

Expected I get examples page from which I can browse graphs

Actual I get 404 not found

Potential resolve Add to package.json -> scripts -> build -> tsc && webpack, not just tsc

cizl commented 1 year ago

Did you have a look at https://github.com/memgraph/orb#development or run install/build/serve instinctively?

The suggestion makes sense -> npm run build to both build and pack the library.

Josipmrden commented 1 year ago

Interesting, I thought it was like that in the development section (which I obviously hadn't followed, and it yields the correct results).