frontendnetwork / veganify-api Goto Github PK
View Code? Open in Web Editor NEWOfficial Veganify API written in NestJS
Home Page: https://frontendnet.work/veganify-api
License: MIT License
Official Veganify API written in NestJS
Home Page: https://frontendnet.work/veganify-api
License: MIT License
Description:
If there are only two non-vegan ingredients in the ingredients list, data.vegan in the response is always true.
How to reproduce:
You can use any 2 non-vegan ingredients in the query. ("chicken, pork" for example).
Vegan ingredients don't affect the results.
Example js code I used.
let response = await fetch(
'https://api.vegancheck.me/v0/ingredients/egg, milk',
{
method: 'GET',
}
);
The problem can be reproduced on the https://vegancheck.me/ingredients website as well.
The BE of the project should be dockerized to be more scalable.
This would could potentially fix our ongoing uptime issues.
For a better overview of the code as well as better extend ability in the future, we should switch from Pure Express to NestJS.
This is an effort we can now make, since we previously switched to ES6 (better late than never! ๐)
Also, the current logic to scrape the data from Peta for cruelty-free brands (including a cronjob) does not work anymore because of the Docker-Setup.
I think it would be best to extract this logic into a GitHub action (if possible) an then just push the latest file to the repo (which will automatically create a new build).
Currently, if VeganCheck.me is given an ingredient that it doesn't recognize, it says that it is vegan -- even if it isn't
Steps to reproduce the behavior:
If a query for an ingredient that is submitted to VeganCheck is not known to VeganCheck's backend, then it should respond with an "I don't know" error, instead of a false-positive guess (green checkbox).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.