Anthony Safo(anthony.s4f@gmail.com)
The live app site can be accessed here: https://glitch.com/~reciegenie.
Simply scroll down and click visit in the bottom right.
Alternatively the project can be ran locally with the call “ node index.js “ in the terminal.
Then connect to http://localhost:3000/ in the browser.
ReciGenie is a nodeJS web service where users can input a hellofresh recipe link, and a list of ingredients is returned. The result of the query is stored in a NEDB database that is retrieved on a results page.
ReciGenie is a continuation of the https://github.com/Anthony-S4/RecipeScraper project. This project builds upon the scraper by introducing a database, web server, and routing. These additions allow for the utilization of the node webframe and creation of a front end user experience.
- index.js: code that utilizes express Node.js web framework. Index.js utilizes the Cheerio js library to scrape data, which through the express routing system can be stored and retrieved.
- all.js: js file that utilizes the fetch API to retrieve the ingredients list from the database using the node js code.
- home.js: js file that utilizes a POST request to send the recipe link to the express server for processing and storage of the recipe link and ingredients.
- database.db: a file that contains all user input from the search query and the ingredients list from that query.
- all.html: html file that is responsible for displaying the relevant recipe ingredients.
- index.html: html file that receives and sends user input to express server.