官术网_书友最值得收藏!

Architecture

The first thing we are going to look at is the architecture of the app. On the client side, we will have a router, from which all things start flowing. The router will have four routes:

  • Home route
  • Browse route
  • Search route
  • Page Not Found route

We will have one service, with three methods that will interact with the Giphy REST API.

Apart from the previously mentioned items, we will have the following components:

  • Nav Component: App Navbar
  • Home Component: Home Page which shows a random gif
  • Trending Component: Show trending gifs
  • Search Component: Search a gif
  • Giphy Component: Template for a gif
  • Page not found Component: To show a page that tells the user that nothing is found

The component tree for this would look as follows:

主站蜘蛛池模板: 宽甸| 凤台县| 板桥市| 都江堰市| 平塘县| 罗田县| 永仁县| 大姚县| 乃东县| 永济市| 靖边县| 城市| 丹东市| 元谋县| 仲巴县| 崇左市| 河间市| 贺兰县| 农安县| 弥勒县| 天长市| 天峨县| 尼勒克县| 安庆市| 台南市| 长丰县| 新化县| 丹凤县| 灵武市| 贵德县| 昌江| 大新县| 漯河市| 衡阳县| 桑植县| 耒阳市| 天台县| 连江县| 讷河市| 林芝县| 临朐县|