Skip to content

Kostvetaren is an application used to easily find out what different foods and dishes actually contains. The data is collected from Livsmedelsverket (The Swedish National Food Agency) and provides more than 2,100 different types of foods and dishes to go along with more detailed information on how different substances affects your body.

Notifications You must be signed in to change notification settings

axelsvanfeldt/Kostvetaren

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kostvetaren

Kostvetaren is a web application designed to help you find out what different foods and dishes actually contains. The data is collected from Livsmedelsverket (The Swedish National Food Agency) and provides more than 2,100 different types of foods and dishes along with more detailed information on how different substances affects your body.

The application is written in PHP and designed to be viewed on mobile devices or tablets. Written long before ECMAScript 2015 was a thing, Kostvetaren is written in ancient classic Javascript without any Babel or Webpack configurations.

Note that Kostvetaren is displayed in Swedish!

Installation:

As mentioned above, Kostvetaren is written in PHP and requires an Apache HTTP Server - with an SQL database - to run. The structure of the SQL table can be imported via kostvetaren.sql, which also contains more than 2,100 entries with different types of foods and dishes.

Livsmedelsverket (The Swedish National Food Agency) updates the data source daily. The SQL database can be updated accordingly by running the file get-data.php, either manually or with a daily cron job.

Remember to edit the database values in config/config.php to match your own settings!

About

Kostvetaren is an application used to easily find out what different foods and dishes actually contains. The data is collected from Livsmedelsverket (The Swedish National Food Agency) and provides more than 2,100 different types of foods and dishes to go along with more detailed information on how different substances affects your body.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published