Build a GraphQL application with Node.js and React
Tran, Tri (2019)
Tran, Tri
2019
All rights reserved. This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Julkaisun pysyvä osoite on
http://urn.fi/URN:NBN:fi:amk-201904124949
http://urn.fi/URN:NBN:fi:amk-201904124949
Tiivistelmä
REST has been popular for building an API for a long time. In spite of its popularity and usage, it still represents several challenges when building a REST server. A new technology called GraphQL was introduced to tackle these issues. GraphQL has gained a significant amount of support from the developer community and it has been adopted by many enterprises.
The main objective of the paper is to explain how GraphQL works and discuss the benefits and drawbacks of using GraphQL. Documentations of the library, a book, and a few reliable online articles were used to describe the implementation of a GraphQL server and a GraphQL client. This analysis will illustrate if using GraphQL is a great solution and show how straightforward it is to implement GraphQL on the back-end and on the front-end. While the API will be built with Node.js, the client will be built with React.
The main objective of the paper is to explain how GraphQL works and discuss the benefits and drawbacks of using GraphQL. Documentations of the library, a book, and a few reliable online articles were used to describe the implementation of a GraphQL server and a GraphQL client. This analysis will illustrate if using GraphQL is a great solution and show how straightforward it is to implement GraphQL on the back-end and on the front-end. While the API will be built with Node.js, the client will be built with React.