Giter VIP home page Giter VIP logo

ember-typescript-giphy's Introduction

ember-typescript-giphy

Outline

/routes
    /home
/components
    /grid
    /item
    /item/image "glimmer component" 
/test
    /acceptance
        /home
        /gif
    /component
        /grid
        /item 
        /item/image
This page will have different "modes" 
    Modes 
  1) Grid 
     This is the default view that the api examples shows 
  2) Carousel Mode 
     Probably using webgl
 

Ember Notes

Firstly, development using ember is speed up using templates via the ember cli.

Routes

The Generate Route command By generating a route using the cli, ember craetes a file in the "/templates" and "/routes" folder. The cli command is i.e. (ember generate route scientists) which generates a file in scientists in both folders.

  1. Routes contains data that is used in the templates file and it is exported as a model. (This file is a js file)
  2. Templates contains the html code which is responsible for populating the dom using the model passed from the routes (This is a hbs file)

The Generate Component command This command generates a file in the components folder ( hbs file ) which is then passed into the file created in the template. A good practice would probably be having multiple components which are then imported as components in the template file. You would pass the model that from the templates file to the component file which was originally passed from the routes files.

 
  {{yield}} takes in child props passed from the parent 
  The {{outlet}} keyword denotes the place where our site's pages should be rendered
    example use: 
       
{{outlet}}

Glimmer components this basically acts as React useStates and listens to state changes. This also allows for component mount, unmount, and update listeners.

Auto-testing with ember

Basically each component and route needs its own test case for testing rendering and testing routing respectively 
1) Acceptance test 
   a) "We can put our automated test into motion by running the test server using the ember test --server command, or ember t -s for short."
2) Component test
    this is basically a rendering test, render test single components 
    **Remember**
    "Finally, we should also update the tests for the  component to confirm that we successfully invoked "
3) Dont forget to test UI interactions

ember-typescript-giphy's People

Contributors

kobayashikento avatar

Watchers

 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.