Giter VIP home page Giter VIP logo

foodrecipes's People

Contributors

fdo2 avatar mhmdtshref avatar safaaamro avatar shaima96 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

fdo2

foodrecipes's Issues

npm init

initializing npm "package.json"

very well website

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" ๐Ÿ˜…

public handler tests

good tests in general!

a couple of comments about the public handler tests:

  • could you also test other files than the index.html? The index file is actually served from the home route in your app.
  • Also, could you test the content of the response as well as the status code and content type?

create-server

Should create server.js file that runs the server and listening to the assigned PORT.

update index.html

Update index.html file to be used by client-side when he request it.

create-home-handler

when the request access to the server and the url is / the response is index.html

update-dom-file

Should update dom file to make changes into the index.html file.

create-tests

Create tests to test functions locally and using Travis online.

create-public-handler

Update router() to call the publicHandler() when the url request is "/[filePath.extention]" and the file is exists in the public folder.

.env

  • should not uplode .env file with your project

create-error-handler

Define errorHandler() function, When the router request url is not exists in the router, it will call this function to return error-response.

files structure

  • .env
  • public
    1-js (request.js && dom.js)
    2-css( requests.css && index.css)
    3-index.html
    *src
    1- server (server.js &&router.js && handler)
    2-test (test.js)
    3- search Recipes(searchRecipes.js)

Design

Great job with the desktop design! A few pointers:

  1. Responsiveness: To add to Ameen's point #37, the mobile design structure can be improved. For future projects it's easier to start with the mobile design and then create the desktop design as you don't have to squeeze everything from a big to a small screen.

screenshot 2018-11-29 at 09 08 14

  1. Colour scheme: I think the dark gray boxes for results could be softened by picking a lighter gray.

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:

group 2

  1. Opacity of the background: I think the background image is great but the opacity is too low.

create-home-router

Define function in router.js to call the homeHandler() function when the request url is '/'.

install-libraries

install required npm libraries: eslint, tape, tap-spec, nodemon, dotenv, request.

API key in the readme

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.