ENGLISH

The Definitive Guide to AdonisJs

Book information

Publisher
Apress
Year
2018
ISBN
978-1-4842-3389-4, 978-1-4842-3390-0
Language
english
Format
PDF
Filesize
4 MB (3699386 bytes)
Edition
1st ed.
Pages
XIII, 249\254
Time added
2018-08-15 07:07:45

Description

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 Learn Set up Node.js and AdonisJs, so that you can start building your application Create and use views and template code Implement 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 environment Who This Book Is For Readers should have a functional understanding of JavaScript. Front Matter ....Pages i-xiii Getting Started (Christopher Pitt)....Pages 1-10 Routing (Christopher Pitt)....Pages 11-26 Views (Christopher Pitt)....Pages 27-40 Requests (Christopher Pitt)....Pages 41-59 Responses (Christopher Pitt)....Pages 61-70 Generators (Christopher Pitt)....Pages 71-79 Promises (Christopher Pitt)....Pages 81-89 Controllers and Middleware (Christopher Pitt)....Pages 91-101 Databases (Christopher Pitt)....Pages 103-128 Validation and Errors (Christopher Pitt)....Pages 129-146 Sessions (Christopher Pitt)....Pages 147-162 Security (Christopher Pitt)....Pages 163-172 Front-End Tools (Christopher Pitt)....Pages 173-182 WebSockets (Christopher Pitt)....Pages 183-205 Deployment (Christopher Pitt)....Pages 207-222 Finishing Touches (Christopher Pitt)....Pages 223-243 Back Matter ....Pages 245-249

Similar books