Skip to content

zhongshixi/gift-the-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gift-the-code

CapitalOne Hackathon For Charity - banner service

brief

you have to also clone the repo for the profile page, https://github.com/crazyo/gift-the-code, you shoud bring up service in this repo first, then bring up front-end page in that repo.

Usage

  1. cd banner-service

  2. bring up banner service container and redis container banner service listens on 4000 and redis container listens on 6379

docker-compose build
docker-compose up -d
  1. go to admin page to insert banner, in browser, type
http://localhost:4000/admin
  1. follow the UI page to add banners

  2. api to fetch those banner for each category

GET http://localhost:4000/banners?category=prostate_cancer
GET http://localhost:4000/banners?category=testicular_cancer
GET http://localhost:4000/banners?category=mental_health
  1. api to fetch any category
GET http://localhost:4000/banners?category=<category_a>,<catefory_b>

About

CapitalOne Hackathon For Charity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published