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

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:

主站蜘蛛池模板: 辛集市| 青海省| 屏山县| 故城县| 高雄县| 天祝| 姚安县| 滨州市| 涞源县| 广灵县| 行唐县| 台江县| 成武县| 乌鲁木齐市| 特克斯县| 榕江县| 城固县| 峨边| 沁阳市| 浦北县| 巫溪县| 酒泉市| 宁蒗| 托克逊县| 古交市| 大厂| 平乐县| 凤凰县| 襄城县| 碌曲县| 岳阳县| 奉化市| 三穗县| 赫章县| 拉萨市| 姜堰市| 泰安市| 册亨县| 梓潼县| 敦煌市| 宁波市|