Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Creating Web Services in JavaScrpt

Oliver Mensah
January 21, 2019
49

Creating Web Services in JavaScrpt

Still working on the slide. That's the general slides. I will take each subtopic and prepare a slide for each.

Oliver Mensah

January 21, 2019
Tweet

Transcript

  1. Oliver Mensah Software Developer, Technical Writer, Developer Community Evangelist •

    Recent Computer Science Graduate • National Service Personnel at AgroInnova • Facebook Developer Circle: Accra Co-Organizer • Previously at Google Developer Group: Ashesi Twitter: @Oliver_Mensah GitHub: @OMENSAH Email: [email protected]
  2. Then there was an evolution Web Services Application Programming Interface

     A single point of contact for each of client facing applications. Strategies  REST  GraphQL
  3. Creating a REST API Using Nodejs  Bootstrapping Project with

    Dependencies  Designing the RESTful API Endpoints  Data Modeling and Storage(Mocked Data)  Data Validation  Authorization of endpoint  Cross Origin  Interaction between API and Client
  4. Data Modeling and Storage/Mocked Data Model Data based on 

    Inherent structure of the data itself   Application usage of data(queries, updates and data processing
  5. Data Validation Where should data be validated  Logic Layer(Controller)

     - required  Model Layer(Data Storage)  - optional
  6. Cross Origin Request Restrictions:  Get Requests on same origin

     CORS request from different domains and ports  - API failure 
  7. RESTful APIs Pain Points  More or less data Writing

    lots of endpoints • Less endpoints with query parameters •
  8. Using Nodejs  Bootstrapping Project with Dependencies  Designing the

    GraphQL Data Model  Developing queries and mutations with Data Storage(Mocked Data)  Authorization to Access Queries and Fields  Interaction between API and Client Creating GraphQL API