fack1 / foodrecipes Goto Github PK
View Code? Open in Web Editor NEWGSG Week 5 Project
GSG Week 5 Project
FoodRecipes/src/searchRecipes/searchRecipes.js
Lines 9 to 11 in 4d40673
Have you forgot to pass the request and response object to the error handler given the request have failed to get a response.
initializing npm "package.json"
call errorHandler()
when request url is not defined .
call the getRecipes-handler when the url is /search/getRecipe?id=[Recipeid]
Line 8 in 4d40673
why does your lint script only look inside src/server
?
You have a website with likeable on design and on work. You need more work in style to be more response.
Other one, it must be have a "Maklobe"
Add css code to the file, to make the site better and responsive.
good tests in general!
a couple of comments about the public handler tests:
index.html
? The index file is actually served from the home route in your app.Should create server.js
file that runs the server and listening to the assigned PORT.
Update index.html file to be used by client-side when he request it.
when the request access to the server and the url is /
the response is index.html
Should update dom file to make changes into the index.html file.
Create tests to test functions locally and using Travis online.
Update router()
to call the publicHandler()
when the url request is "/[filePath.extention]
" and the file is exists in the public folder.
Show results using good template.
Add css resets to the file, to use it as defaults on all the browsers.
Line 20 in 4d40673
In all of your tests this line is unneeded. Do you know why?
Define errorHandler()
function, When the router request url is not exists in the router, it will call this function to return error-response.
call the searchRecipes- handler when the url is /search?value=[searchValue]
create an endpoint that take search to recipes
Great job with the desktop design! A few pointers:
3: Food images: You've picked a great API, the images are really high quality. It would be great if they were made even bigger to fit the whole container. For example:
Define function in router.js
to call the homeHandler()
function when the request url is '/'.
handle public & API requests
install required npm libraries: eslint, tape, tap-spec, nodemon, dotenv, request.
You shouldn't share your API key or make it public, the point why you have created the .env file and one main benefit of sending APIrequests from the back-end is to hide the API key.
Instead of adding it in the instruction to use the add, you should have said go to https://www.food2fork.com/ and generate an API key...
Please change the readme instruction to use the app accordingly.
Add files to ignore it.
create a handler that get the recipes from the API
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.