Coder Social home page Coder Social logo

adopt-a-dog's Introduction

Supabase Dog Adoption App

Use this template for this deliverable.

Learning Objectives

  • Draw a simple architecture diagram describing the relationship between a user's computer and a single RESTful API.
  • On load, use fetch and .then to hit a GET endpoint, get all items, and set state and update the view using the response.
  • In front end apps with asynchronous behavior, use the network tab to examine (and debug) the request being sent to a server and the response received from a server.

Here is the model for the dogs table

Live Example:

https://alchemycodelab.github.io/web-01-adopt-a-dog/

Description

For this deliverable you have been given a supabase database and some render functions. Your job is to add the code in fetch-utils.js, app.js and detail.js to render the list of animals and the details page.

Task Points
** Deploy Requirements **
Main branch deployed to Netlify 1
Open PR from dev branch with Netlify deploy preview 1
** Code Requirements **
ASYNC: getDogs() : return array of dogs from supabase 2
On load on the home page, see a list of dogs (names and breed image), fetched from supabase 1
On clicking a dog, user should be taken to that dog's detail page. 1
ASYNC: getDog(id) : return single dog from supabase 2
Detail page should get the id from the URL and use that id to fetch that dog from supabase. 1
Detail page should show the user details about the dog (including age, breed, and description) 1

adopt-a-dog's People

Contributors

indio-ferrel avatar

Watchers

 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.