microservices-demo/src/frontend
sebright dc7effd601 adservice: find relevant ads by category ()
The ad service now returns ads matching the categories of the product that is
currently displayed.  Changes in this commit:

- List all products' categories in products.json.

- Pass the current product's categories from the frontend to the ad service when
  looking up ads.

- Store a statically initialized multimap from product category to ad in the ad
  service.

- Return all ads matching the given categories when handling an ads request.
  The ad service continues to return random ads when no categories are given or
  no ads match the categories.
2018-10-01 22:44:56 -07:00
..
genproto pb: add "categories" field to Product () 2018-10-01 21:33:25 -07:00
money go: use dep in builds, remove relative imports 2018-08-04 11:21:03 -07:00
static/img/products frontend/static: fix product image aspect ratios 2018-07-15 16:30:18 -07:00
templates frontend: add link to github repo from footer 2018-08-30 10:37:58 -07:00
.dockerignore frontend: add vendor/ to dockerignore 2018-08-27 13:29:16 -07:00
.gitkeep Add src dirs 2018-06-13 14:26:55 -07:00
Dockerfile go: use dep in builds, remove relative imports 2018-08-04 11:21:03 -07:00
genproto.sh Add LICENSE headers to source files 2018-07-25 09:54:28 -07:00
Gopkg.lock adservice: find relevant ads by category () 2018-10-01 22:44:56 -07:00
Gopkg.toml adservice: find relevant ads by category () 2018-10-01 22:44:56 -07:00
handlers.go adservice: find relevant ads by category () 2018-10-01 22:44:56 -07:00
main.go Change log format to JSON and log destination to stdout () 2018-09-25 16:43:17 -07:00
middleware.go Add more license headers 2018-07-25 21:25:27 -07:00
README.md go: use dep in builds, remove relative imports 2018-08-04 11:21:03 -07:00
rpc.go adservice: find relevant ads by category () 2018-10-01 22:44:56 -07:00

frontend

Run the following command to restore dependencies to vendor/ directory:

dep ensure --vendor-only