• Genere: Libro
  • Lingua: Inglese
  • Editore: Apress
  • Pubblicazione: 03/2018
  • Edizione: 1st ed.

The Definitive Guide to AdonisJs

32,98 €
31,33 €
AGGIUNGI AL CARRELLO
TRAMA
Learn everything you need to master the AdonisJs framework, including topics such as interacting with a database, rendering templates, writing asynchronous code, and hosting sites with SSL. Along the way, you’ll see how to build a commerce application, which lists products and allows shoppers to register and purchase those products. The site will feature a product catalog, a shopping cart, user registration and login, and profile management.The Definitive Guide to AdonisJs also covers how to create a front-end build chain, so that you can use a modern front-end framework, such as React. You’ll discover how to connect your front end to the server, so that data and transactions can be shared between the two. Finally, you’ll see how to secure and deploy the application to a virtual private server, including how to apply for and install an SSL certificate and start accepting payments.After reading and using this book, you’ll know all you need about AdonisJs. You’ll have the tools to turn that side-project you’ve been thinking about into a real money-making product. It is written by a web expert and reviewed by the AdonisJs project lead. This is the complete start-to-finish guide you’ve been waiting for.   What You'll LearnSet up Node.js and AdonisJs, so that you can start building your application Create and use views and template codeImplement cooperative multitasking, in JavaScriptRepresent eventual values with AdonisJs promisesOrganize and isolate your code in controllers and decorate them with middleware, to do things like authenticationBuild queries, using the Lucid DSL, and package these database entities up into model classesValidate form data and respond with the appropriate error messagesRespond to general framework errors with custom error pagesLearn the deeper parts of sessions and cookiesUpdate the state of the user interface with WebSocketsHost AdonisJs applications in a modern hosting environmentWho This Book Is ForReaders should have a functional understanding of JavaScript.

SOMMARIO
1. Getting started (1 week to write)Learn how to get NodeJS and AdonisJS set up, so that you can start building yourapplication. Get familiar with the folder structure, and start customizing it.2. Routing (1 week)Learn how to connect the browser to your JS code, by defining different routes. These routescan target different HTTP request methods and headers. Create routes for registration, login,and profile management.3. Templates (1 week)Learn about how to create and use views and template code. Define templates forregistration and login. Render these individual views when different URLs are entered in thebrowser.4. Requests (1 week)Learn about the different parts of an HTTP request, and how they are represented withinAdonisJS. Pass form data from the registration and login screens, to the controllers that willallow users to register and log in.5. Responses (1½ weeks)Learn about the different kinds of response data and headers, and how they are representedwithin AdonisJS. Create API routes, which produce JSON data, and redirects which movefrom one route to another.6. Generators (½ week)Learn about what generators (language syntax) are, and how they came to be. See how theycan be used to implement cooperative multitasking, in JavaScript.7. Promises (½ week)Learn about what promises (language syntax) are, and how they can be used to representeventual values. See how they can be used, in conjunction with generators, to create syntaxwhich is simple but asynchronous.8. Controllers and Middleware (2 weeks)Learn about how to organize and isolate your code in controllers. See how they can bedecorated, with middleware, to do things like authentication.9. Databases (3 weeks)Learn about how to interact with databases; to read and write data. Build queries, using theLucid DSL, and package these database entities up into model classes.10. Validation and Error Pages (1 week)Learn how to validate form data, and respond with the appropriate error messages. Learnhow to respond to general framework/application errors, with custom error pages.11. Sessions and Cookies (1 week)Learn the deeper parts of sessions (not already covered in the middleware chapter), and howto use cookies. Maintain a user session (and cart) between pages of the application.12. Security (1½ weeks)Learn about how to make cross-origin requests, protect against cross-site scripting attacks,encrypt and hash data securely.13. Front-end (1½ weeks)Learn how to create a front-end build-chain: to preprocess and optimize JavaScript and CSScode. Set up ReactJS, for isolated front-end components, and use SASS to style theapplication.14. Web sockets (1 week)Learn how to update the state of the user interface, with web sockets. Connect these toisolated ReactJS components, for rapid and stable data updates.15. Deployment (1½ weeks)Learn how to host AdonisJS application, in modern hosting environments. Forward requests,from popular web servers, to AdonisJS applications. Create SSL certificates and fault-tolerantdaemon management.16. Adding Polish (Finishing the Application) (1 week)See all the bits of work required to finish the application. Each section highlights the required learning – pointing out each chapter thatshould be read and understood before completing the work for it.

AUTORE
Christopher Pitt is a developer and writer, working at SilverStripe. He usually works on application architecture, though sometimes you’ll find him building compilers or robots.  He is also the author of several web development books and is a contributor on various open source projects like AdonisJs.

ALTRE INFORMAZIONI
  • Condizione: Nuovo
  • ISBN: 9781484233894
  • Dimensioni: 254 x 178 mm Ø 515 gr
  • Formato: Brossura
  • Illustration Notes: XIII, 249 p. 26 illus.
  • Pagine Arabe: 249
  • Pagine Romane: xiii