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

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:

主站蜘蛛池模板: 颍上县| 南昌市| 隆化县| 红原县| 辛集市| 格尔木市| 大冶市| 垦利县| 大庆市| 宣恩县| 城口县| 逊克县| 铁岭市| 巴塘县| 武宁县| 将乐县| 麦盖提县| 沂源县| 南京市| 墨玉县| 福贡县| 惠东县| 柳江县| 怀远县| 平湖市| 东丰县| 桐乡市| 秀山| 宁乡县| 南充市| 韩城市| 平和县| 万年县| 大冶市| 吴旗县| 万载县| 江山市| 泰兴市| 奎屯市| 乌拉特前旗| 武强县|