Building APIs with Node.js /
This quick guide teaches you how to build scalable APIs using the Node.js platform and ES6 (EcmaScript 2015). Developing systems for the wide range of devices available in the modern world requires the construction of APIs designed to work only with data in a centralized manner, allowing client-side...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
[United States] :
Apress,
[2016]
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- At a Glance; Contents; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Chapter 1: Introduction to Node.js; What Is Node.js?; Main Features; Single-Thread Architecture; Event-Loop; Why Do I Need to Learn Node.js?; Conclusion; Chapter 2: Setting Up the Environment; Node.js Standard Installation; About io.js and Node.js Merge; Node.js Installation Via NVM; Set Up NVM; Top NVM Commands; Installing Node.js Via NVM; Conclusion; Chapter 3: Managing Modules with NPM; What Does NPM Do?; Top NPM Commands; Understanding the package.json File; NPM Task Automation.
- ConclusionChapter 4: Building an API; Introduction to Express; Getting Started on the Pilot Project; Pilot Project Source Code; Implementing a Simple and Static Resource; Arranging the Loading of Modules; Conclusion; Chapter 5: Working with SQL Databases; Setting Up Sequelize; Creating Models; Model: Tasks; Model: Users; Conclusion; Chapter 6: CRUDify API Resources; Organizing Task Routes; Listing Tasks Via GET; About HTTP Status; Creating Tasks Via POST; Finding a Task Via GET; Updating a Task Via PUT; Deleting a Task Via DELETE; Refactoring Some Middlewares; Creating Users' Endpoints.
- Testing Endpoint Access Using PostmanConclusion; Chapter 7: Authenticating Users; Introduction to Passport.js and JWT; About Passport.js; About JWT; Installing Passport and JWT; Implementing JWT Authentication; Generating Tokens for Authenticated Users; Conclusion; Chapter 8: Testing the Application: Part 1; Setting Up the Test Environment; Writing the First Test; Testing the Authentication Endpoint; Conclusion; Chapter 9: Testing the Application: Part 2; Testing a Task's Endpoints; Testing a User's Endpoints; Conclusion; Chapter 10: Documenting the API; Introduction to ApiDoc.js.
- Documenting Token GenerationDocumenting User Resource; Documenting Tasks Resource; Conclusion; Chapter 11: Preparing the Production Environment; Enabling CORS in the API; A Bit More About CORS; Generating Logs; Configuring Parallel Processing Using Cluster Module; Developing Clusters; Compacting Requests Using GZIP Middleware; Installing SSL Support to Use HTTPS; Armoring the API with Helmet; Conclusion; Chapter 12: Building the Client-Side App: Part 1; Setting Up the App Environment; Creating Sign-in and Signup Views; Writing Sign-in and Signup Components; Conclusion.
- Chapter 13: Building the Client-Side App: Part 2Views and Components for Task's CRUD; Views and Components for Logged Users; Creating the Main Menu; Treating All Screen Events; Conclusion; Index.