Coder Social home page Coder Social logo

west-se-071921-cc1.2-flortagorm's Introduction

FLORTAGORM

Today you'll be building an app for viewing, liking, and commenting on a single picture. You will be using a remote API and building out the frontend for our TOTALLY NEW app, FLORTAGORM.

Setup

You will be getting your data from a remote API. Use this URL to get your unique image, likes, title, and comments:

https://distinct-vaulted-freesia.glitch.me/image

Hit that URL in your browser to see the data, and verify that it's working for you. (If it's been a while, the server may take a second to spin up.)

Then, open the index.html file in your browser to load your application.

Write your code in the src/index.js file, using the provided data and image.

Deliverables

As a user, I can:

  1. See the image received from the server, including its title, likes and comments when the page loads. You will need to make a GET request to the following endpoint to retrieve the image data, along with its associated comments:

    // https://distinct-vaulted-freesia.glitch.me/image
    
    {
      "id": 437,
      "title": "The Secrets of the Dwindling Scent",
      "likes": 3,
      "image": "https://picsum.photos/id/437/500",
      "comments": [
        {
          "id": 1,
          "imageId": 437,
          "content": "The Missing Game of the Man"
        },
        {
          "id": 2,
          "imageId": 437,
          "content": "Fire in the Healer"
        },
        {
          "id": 3,
          "imageId": 437,
          "content": "Vacant Flame"
        }
      ]
    }
  2. Click on the thumbs up icon to increase image likes on the page. Don't worry about saving the new likes to the database.

  3. Add a new comment to the page when the comment form is submitted. Again, you don't have to save the comments to the database.

DEMO

demo gif

west-se-071921-cc1.2-flortagorm's People

Contributors

marcmajcher avatar

Watchers

MariOS avatar Kaitlin Vignali avatar Mohawk Greene avatar  avatar Joe Cardarelli avatar The Learn Team avatar Dr. Chester Ismay avatar  avatar Liz Burton avatar Matt avatar Alex Griffith avatar  avatar Amanda D'Avria avatar  avatar Ahmed avatar Nicole Kroese  avatar Dominique De León avatar  avatar Vicki Aubin avatar Maxwell Benton avatar  avatar Blake Long 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.