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.

axelsvanfeldt/Kostvetaren

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
css
 
 
 
 
img
 
 
js
 
 
 
 
 
 
 
 
 
 

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