Giter VIP home page Giter VIP logo

canonical-cards's Introduction

Canonical exercise

Running the app

Clone this repo. In the project directory, run:

npm install

followed by

npm start

Thi runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you edit the code.\

Thoughts and Notes

There wasn't much to go on in terms of API, I just in followed the provided link and inspected the JSON there.
I have a feeling some of the fields I'm accessing are "internal" but it got the job done. I looked into the WordPress API docs, especially to fetch the author, but it didn't seem to work so I just used as much of the v2/posts endpoint as I could.

Further enhancements could involve this part of the app, by subsequently fetching the required data using the response of the first request. Also typing out the API schema would be a good improvement.

Overall, I'd say this took me about 3h. I did the data fetching, error handling and state management in about 30min, pretty standard stuff. The rest of the time was mostly spent reading the Vanilla docs, figuring out how to use it.
I didn't notice there was a react-components package at first, so roughly the last hour was me just refactoring and trying to understand what pre-built components I could use.

๐Ÿš€

Create React App

This project was bootstrapped with Create React App.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

canonical-cards's People

Watchers

Tiago Vila Verde avatar  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.