Skip to content

A demo of a Django web app which allows the user to search up foods using the USDA API and displays the relevant nutrition information. Also uses user authentication to a local database.

Notifications You must be signed in to change notification settings

emilyallerdings/Django-USDA-Nutrition-Lookup-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

A basic demo for a django web app which utilizes an external API from USDA for nutrition look-up and a local databse for user authentication.

Run using python manage.py runserver.

Only runs locally for now at http://127.0.0.1:8000/.

Configuration

To run this project, you need to set up a .env file in the /foodsearch/ directory. This file should contain the following environment variables:

# Django secret key
SECRET_KEY=your_django_secret_key_here

# USDA API key
USDA_API_KEY=your_api_key_here

A USDA API key can be obtained for free here

About

A demo of a Django web app which allows the user to search up foods using the USDA API and displays the relevant nutrition information. Also uses user authentication to a local database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published