The Definitive Guide to AdonisJs - Christopher Pitt

The Definitive Guide to AdonisJs (eBook)

Building Node.js Applications with JavaScript
eBook Download: PDF
2018 | 1st ed.
XIII, 249 Seiten
Apress (Verlag)
978-1-4842-3390-0 (ISBN)
Systemvoraussetzungen
29,99 inkl. MwSt
  • Download sofort lieferbar
  • Zahlungsarten anzeigen

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 JavaScript
  • Represent eventual values with AdonisJs promises
  • Organize and isolate your code in controllers and decorate them with middleware, to do things like authentication
  • Build queries, using the Lucid DSL, and package these database entities up into model classes
  • Validate form data and respond with the appropriate error messages
  • Respond to general framework errors with custom error pages
  • Learn the deeper parts of sessions and cookies
  • Update the state of the user interface with WebSockets
  • Host AdonisJs applications in a modern hosting environment

Who This Book Is For

Readers should have a functional understanding of JavaScript.




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.

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.

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.

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.

Erscheint lt. Verlag 14.3.2018
Zusatzinfo XIII, 249 p. 26 illus.
Verlagsort Berkeley
Sprache englisch
Themenwelt Mathematik / Informatik Informatik Web / Internet
Schlagworte Adonis.js • Code • definitive • Framework • JavaScript • Mobile • MVC • Node.js • programming • Software • web applications • Web Development
ISBN-10 1-4842-3390-5 / 1484233905
ISBN-13 978-1-4842-3390-0 / 9781484233900
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 3,7 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Das Handbuch für Ausbildung und Beruf

von Vivian Pein

eBook Download (2024)
Rheinwerk Computing (Verlag)
27,93