Skip to content

KaidenCoder/MealsAppVanlliaJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MEALS APP

It is a solution to the Coding Ninjas CareerCamp Web dev-test2. Please visit the Coding Ninjas career camp website CodingNinjas CareerCamp for more details.

Table of contents

Overview

It is a meals app where you can search for any meal, displaying the results. You can see the details of every meal item, and you can bookmark and remove the bookmarked meal item.

Screenshot

Links

My process

First, I designed the skeleton of the design using HTML and CSS. Then, I started coding in Javascript and also made changes in HTML and CSS.

Built with

  • HTML
  • CSS
  • JavaScript

What I learned

I got to learn how to use local storage for saving and removing items

async function getBookmarkData(url) {
  const response = await fetch(url);
  var data = await response.json();
  myObj_serial = JSON.stringify(data.meals);
  for (var i of data.meals) {
    localStorage.setItem(i.idMeal, myObj_serial);
  }
}

async function removeBookmarkData(url) {
  const response = await fetch(url);
  var data = await response.json();
  myObj_serial = JSON.stringify(data);
  for (var i of data.meals) {
    localStorage.removeItem(i.idMeal);
  }
}

Useful resources

Author

Acknowledgments

I have done this project from scratch by referencing the websites that I mentioned.

About

It is a meals app made in Vanilla JS where you can search for any meal, displaying the results. You can see the details of every meal item, and you can bookmark and remove the bookmarked meal item.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors