Skip to content

banjocat/calorie-find

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

In Development

CircleCI

Calorie find

Is a RESTFUL API that finds calorie counts of food. This is primarly a learning project to get me use of use django with docker.

How to develop on

docker-compose -up

To run other manage commands on a running django backend. This requires the backend to actually be running.

docker-compose exec backend ./manage.py shell_plus
docker-compose exec backend ./manage.py migrate

Requirements

  • Docker compose for development
  • Django restframework for API
  • Django swagger for docs (swagger couldn't determine the POST schema)
  • Ansible and vagrant for deployment simulation (Moved to fabric as ansible was overkill)
  • circle.yml for test and pushing to
  • Read ASCII data file into database for calorie data
  • 1 API endpoint to send list of data
  • If multiple matches or mispelling send multiple options in JSON

Extra credit

  • Make a basic frontend (Decided not to)
  • Figure out way to do lazy matching
  • UPC support (required to make it a "real" project)

Tech used

  • django
  • postgresql

About

RESTful API calorie finder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published