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.
PHP CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
classes
config
content
css
fonts
img
js
.gitattributes
README.md
get-data.php
index.php
kostvetaren.sql
robots.txt

README.md

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!

You can’t perform that action at this time.