Giter Site home page Giter Site logo

vue2-hodo-fe-interview's Introduction

HODO Interview

I. API

https://jsonplaceholder.typicode.com/posts

II. Playground - Code online

https://stackblitz.com/edit/vue2-hodo-fe-interview?file=README.md

NOTE: Yêu cầu FORK trước khi start code.

III. Yêu cầu

1. Các packages cần dùng: axios, [email protected], [email protected]

2. Yêu cầu chính (Thời gian 40 ~ 50 phút)

  • Sử dụng Vuex để lưu store tất cả dữ liệu posts lấy về từ API
  • Hiển thị lên màn hình 5 posts (bao gồm: title, body) theo thứ tự ID [100, 99, 98, 97, 96]
  • Hiển thị chi tiết post theo ID thông qua router (sử dụng vue-router)

3. Yêu cầu thêm (Optional)

  • Build 1 layout hiển thị trang blog post.
  • Do API không trả về hình ảnh, sử dụng link sau làm ảnh thumbnail demo cho các posts: https://picsum.photos/id/<id_post>/500/300
  • Sử dụng 5 posts hiển thị dạng lưới (Grid) bao gồm:
    • Tiêu đề mục: Latest posts
    • Image
    • Title
    • Body
  • Với 95 posts còn lại [95, 94, 93, …, 1] hiển thị dạng danh sách (List) bao gồm:
    • Image
    • Title
    • Body
  • Danh sách có phân trang với limit 10 posts/page. Danh sách này được đặt bên dưới Latest posts

4. Kết quả đạt được cho phần yêu cầu thêm (Optional)

  • Trang Blog posts có:
    • Latest posts (5 posts có ID mới nhất (lớn nhất)
    • List 95 posts còn lại, có phân trang với limit: 10 posts/page
  • Trang Detail post: hiển thị nội dung của 1 bài post khi được click từ trang Blog post bên trên

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.