Git Product home page Git Product logo

recipe.io's Introduction

Recipe.io

Logo

A full-stack web application built using React.js, Node.js, Express.js, and the Spoonacular food API. The application pulls recipe data from the Spoonacular API and displays recipes containing the ingredients the user entered.

Get Started

First you will need a Spoonacular API key. Next, clone the repository:

git clone https://github.com/danwei002/HTN-Project

Open the newly cloned repository and find the config.js file in the server directory. In here, update the variable apiKey with your API key. Now navigate back to the main directory and change to the server directory:

cd server

Next you will need to run the commands to install all server dependencies and start up the backend.

npm install npm start

After successfully starting up the backend, you will see the message "App is listening on port :8888". Return to the main directory, then change to the client directory:

cd client

Again run the commands

npm install npm start

This installs all required dependencies and starts up the frontend. The frontend is running on localhost:3000. The application is now up and running.

How To Use The Application

Inputting ingredient "tomato"

First, input an ingredient into the large input box in the middle of the screen. You will see some autocomplete settings underneath that you can click. When finished, click the green "Add" button. The added ingredient will be shown in a grey box underneath the input field. You can click the grey boxes to remove ingredients.

Tomato added

Once you have inputted all the ingredients you want, hit the yellow "Find Recipes" button. You will then see some of the best matching recipes for the ingredients you entered. You can click on these recipes to get more detail on them.

Recipes found

recipe.io's People

Contributors

danwei002 avatar kiwiegg avatar govindn75 avatar

Stargazers

 avatar

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.