All Projects → raulfdm → Taco Api

raulfdm / Taco Api

Licence: mit
🍉 Brazilian Table of Food Composition (TACO) - JSON API

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Taco Api

E Commerce 2 django
Guest register, user register, user login, user logout, account home page, product view history, change password, reset password, change name, send activation email when register, resend activation email, add shipping address, add billing address, add nickname to the addresses, edit shipping address, edit billing address, view list of your addresses, reuse shipping addresses when order products, reuse billing addresses when ordeer products, show sales analytics if staff or admin only using -chart.js-, get analytics data with Ajax, receive marketing email, change if user will receive marketing email or not by admin, send contact message with Ajax, products list, product detail, download product detail as a PDF file, download digital product files -if the user purchased that digital product only-, orders list, list of digital products files, order detail, download order detail as a PDF file, verify order ownership with Ajax -to secure order detail page-, show cart products, add or remove product from cart, checkout page, thanks page when order placed successfully, add or reuse payment method, add or reuse payment method with Ajax, search products by title, search products by description, search products by price, search products by tag title, write tags for products -by admin only-, auto fill contact email, full name if user logged in.
Stars: ✭ 20 (-77.01%)
Mutual labels:  api, restful-api
Rest Api Example
RESTful Blog API in Lumen 5.2
Stars: ✭ 53 (-39.08%)
Mutual labels:  api, restful-api
Tinyme
A tiny php framework based on flight and medoo with restful api service
Stars: ✭ 28 (-67.82%)
Mutual labels:  api, restful-api
Koa2 Api Scaffold
一个基于Koa2的轻量级RESTful API Server脚手架。
Stars: ✭ 694 (+697.7%)
Mutual labels:  api, restful-api
Spacex Api
🚀 Open Source REST API for SpaceX launch, rocket, core, capsule, starlink, launchpad, and landing pad data.
Stars: ✭ 8,973 (+10213.79%)
Mutual labels:  api, restful-api
Apidoc
RESTful API 文档生成工具,支持 Go、Java、Swift、JavaScript、Rust、PHP、Python、Typescript、Kotlin 和 Ruby 等大部分语言。
Stars: ✭ 785 (+802.3%)
Mutual labels:  api, restful-api
Ebook Building An Api Backend With Microprofile
Building an API Backend with MicroProfile
Stars: ✭ 53 (-39.08%)
Mutual labels:  api, restful-api
Http Fake Backend
Build a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.
Stars: ✭ 253 (+190.8%)
Mutual labels:  api, restful-api
Openapi Generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
Stars: ✭ 10,634 (+12122.99%)
Mutual labels:  api, restful-api
Standards.rest
A collection of standards, specifications, etc. for HTTP API development.
Stars: ✭ 58 (-33.33%)
Mutual labels:  api, restful-api
Datafire
A framework for building integrations and APIs
Stars: ✭ 487 (+459.77%)
Mutual labels:  api, restful-api
Parvula
An extremely simple & flexible CMS generated from flat files with a complete RESTful API —
Stars: ✭ 76 (-12.64%)
Mutual labels:  api, restful-api
Jianshu
仿简书nx+nodejs+nestjs6+express+mongodb+angular8+爬虫
Stars: ✭ 296 (+240.23%)
Mutual labels:  api, restful-api
Ngx Restangular
Restangular for Angular 2 and higher versions
Stars: ✭ 787 (+804.6%)
Mutual labels:  api, restful-api
Pfsense fauxapi
REST based API interface for pfSense 2.3.x and 2.4.x to facilitate devops
Stars: ✭ 288 (+231.03%)
Mutual labels:  api, restful-api
Generator Http Fake Backend
Yeoman generator for building a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.
Stars: ✭ 49 (-43.68%)
Mutual labels:  api, restful-api
Route
Route - Fast, flexible routing for PHP, enabling you to quickly and easily build RESTful web applications.
Stars: ✭ 200 (+129.89%)
Mutual labels:  api, restful-api
Clevergo
👅 CleverGo is a lightweight, feature rich and high performance HTTP router for Go.
Stars: ✭ 246 (+182.76%)
Mutual labels:  api, restful-api
Api Strategy
Equinor API Strategy
Stars: ✭ 56 (-35.63%)
Mutual labels:  api, restful-api
Jokeapi
A REST API that serves uniformly and well formatted jokes in JSON, XML, YAML or plain text format that also offers a great variety of filtering methods
Stars: ✭ 71 (-18.39%)
Mutual labels:  api, restful-api

TACO API

Brazilian Table of Food Composition (TACO) consumer library

build status dependencies Status devDependencies Status

Project TACO

TACO is an initiative between Nucleus of Studies and Research in Food (NEPA) of UNICAMP with a funding from brazilian Ministry of Health (MS) and Ministry of Social Development and Fight against Hunger (MDS) to provide data of a large number of nutrients in national and regional foods obtained through representative sampling and analysis carried out by laboratories with analytical competence proven by interlaboratory studies, according to international criteria.

Know more (in pt-br)

Getting started

Docker

If you use Docker, instead running this project locally you can simply run Taco API image:

docker pull raulfdm/taco-api

Then, run your container:

docker run -it --rm --name taco -p 4000:4000 raulfdm/taco-api

After that, you can check the API documentation at http://localhost:4000.

Running locally

To run locally, clone this project:

git clone https://github.com/raulfdm/taco-api.git

Then, install all dependencies and run npm start:

cd taco-api
npm install
npm start

After that, you can check the API documentation at http://localhost:4000.

If you want to use docker and run instead, you can use docker-compose:

docker-compose up

About this project

The main goal of this project was to take the data from original research and provide as API using modern development techniques.

Actually the original project have only 2 possible ways to consult the data:

  1. By PDF file. In that case, you have to find the food you want and be sure your looking the correct value;
  2. By tabulated xls. The researchers have created the XLS to be an database, however, they tabulated it and made nice to print, not to filter or to extract. Also there's 3 different sheet containing specific data for the same food.

The way they've chosen can work if you want to do a quick consult, however, if you want to build an application with this data, you have to format it to make it easy to use and that's this project about: better format.

Step-by-step

The following steps describe the whole workflow I did to build this project:

  1. Extract the original xls, cleaning unnecessary styles, columns and rows;
  2. Repeat the above step for each sheet;
  3. Merge all 3 sheets into one;
  4. Generate a CSV (Comma-separated values) and export it to a JSON format;
  5. Create another JSON file containing all categories and then create a relation between FOOD - Category;
  6. Create 2 end-points food and category to get this data

API Documentation

You can consult the API documentation at: https://taco-food-api.herokuapp.com

Official Research

In order to keep the original research as source of truth of this project, I've saved all available files (got from NEPA website). You can consult them in references folder.

Stack


Want to say something?

If you have any question, suggestion or something, please feel free to open an issue. I'll be happy to answer it! :)


Legal Information

This is a non-profit project.

All data provided on this project was researched and produced by UNICAMP, therefore all copyright are reserved to them.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].