Git Product home page Git Product logo

deto_no_yoru's Introduction

デートの夜 - Date Night

デートの夜 (Deto No Yoru) is a small website dedicated to making date nights easier. If you’re tired of never knowing what to watch or eat, Deto No Yoru is your solution! With the click of one button, our app will tell you which local restaurant you should try and what anime you should watch. If you’re still unsure of what to watch, our trending page will show you the top anime series according to MyAnimeList.

Plan your perfect date night at Deto No Yoru.

gif of how to use Deto no Yoru

Motivation

Each member of our team had been in a situation where hours had been spent debating with their significant other or friends over what to watch and what to eat. We set out to create a solution to end those painful hours scrolling through Netflix or Google maps. Rather than using an API based on recipes, it was important to our team that Deto No Yoru would be an easy date night fix by using local restaurants. By generating a random restaurant and anime, our goal was to take the “thinking” out of date night planning.

gif of trending anime carousel

Code Example

The following code uses the user-selected genre to fetch information from the jikan API. The array from the selected genre is then randomized. This same pattern was also used to fetch the random local restaurant.

    function fetchAnime(genre) {
        fetch(`https://api.jikan.moe/v3/genre/anime/${genre}`)
            .then(function (response) {
                return response.json();
            })
            .then(function (animeList) {
                randomizeAnime(animeList)

            })
            .catch(function (error) {
                console.error("ERROR: ", error);
            })
    }

    function randomizeAnime(animeList) {
        const randomAnime = Math.floor(Math.random() * animeList.anime.length);

APIs Used

Languages Used

picture of JS, CSS, and HTML icons

Contributors

deto_no_yoru's People

Contributors

alynapchuk avatar rodrigo-ruiz1 avatar sarahdepalo avatar seanrreid 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.