Home
Express in Action: Writing, building, and testing Node.js applications
SummaryExpress in Action is a carefully designed tutorial that teaches you how to build web applications using Node and Express.Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.About the TechnologyExpress.js is a web application framework for Node.js. Express organizes your serverside JavaScript into testable, maintainable modules. It provides a powerful set of features to efficiently manage routes, requests, and views along with beautiful boilerplate for your web applications. Express helps you concentrate on what your application does instead of managing timeconsuming technical details.About the BookExpress in Action teaches you how to build web applications using Node and Express. It starts by introducing Node s powerful traits and shows you how they map to the features of Express. You ll explore key development techniques, meet the rich ecosystem of companion tools and libraries, and get a glimpse into its inner workings. By the end of the book, you ll be able to use Express to build a Node app and know how to test it, hook it up to a database, and automate the dev process.What s Inside Simplify Node app setup with Express Testing Express applications Use Express for easy access to Node features Data storage with MongoDB Covers Express 4 and Express 5 alphaAbout the ReaderTo get the most out of this book, you ll need to know the basics of web application design and be proficient with JavaScript.About the AuthorEvan Hahn is an active member of the Node and Express community and contributes to many open source JavaScript projects.Table of Contents PART 1 INTRO What is Express? The basics of Node.js Foundations of Express PART 2 CORE Middleware Routing Building APIs Views and templates: Pug and EJS PART 3 EXPRESS IN CONTEXT Persisting your data with MongoDB Testing Express applications Security Deployment: assets and Heroku Best practices
⚠️ WARNING (California Proposition 65):
This product may contain chemicals known to the State of California to cause cancer,
birth defects, or other reproductive harm.
For more information, please visit
www.P65Warnings.ca.gov .
<div class="dynamic-checkout__content" id="dynamic-checkout-cart" data-shopify="dynamic-checkout-cart"> <shopify-accelerated-checkout-cart wallet-configs="[{"supports_subs":true,"supports_def_opts":false,"name":"shop_pay","wallet_params":{"shopId":73758048501,"merchantName":"Ergodebooks","personalized":true}},{"supports_subs":false,"supports_def_opts":false,"name":"amazon_pay","wallet_params":{"checkoutLanguage":"en_US","ledgerCurrency":"USD","placement":"Cart","sandbox":false,"merchantId":"A1G1ZY975O1T6J","productType":"PayAndShip","design":"C0002"}},{"supports_subs":true,"supports_def_opts":false,"name":"paypal","wallet_params":{"shopId":73758048501,"countryCode":"US","merchantName":"Ergodebooks","phoneRequired":true,"companyRequired":false,"shippingType":"shipping","shopifyPaymentsEnabled":true,"hasManagedSellingPlanState":false,"requiresBillingAgreement":false,"gatewayType":"MANAGED","merchantId":"L873BZSC9NMQS","sdkUrl":"https://www.paypal.com/sdk/js?components=buttons\u0026commit=false\u0026currency=USD\u0026locale=en_US\u0026client-id=AbasDhzlU0HbpiStJiN1KRJ_cNJJ7xYBip7JJoMO0GQpLi8ePNgdbLXkC7_KMeyTg8tnAKW4WKrh9qmf\u0026merchant-id=L873BZSC9NMQS\u0026intent=authorize","serviceableCountryCodes":["AC","AD","AE","AF","AG","AI","AL","AM","AO","AR","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MK","ML","MM","MN","MO","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PS","PT","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"]}},{"supports_subs":true,"supports_def_opts":false,"name":"google_pay","wallet_params":{"sdkUrl":"https://pay.google.com/gp/p/js/pay.js","paymentData":{"apiVersion":2,"apiVersionMinor":0,"shippingAddressParameters":{"allowedCountryCodes":["AC","AD","AE","AF","AG","AI","AL","AM","AO","AR","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MK","ML","MM","MN","MO","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PS","PT","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"phoneNumberRequired":true,"format":"FULL-ISO3166"},"merchantInfo":{"merchantName":"Ergodebooks","merchantId":"16708973830884969730","merchantOrigin":"ergodebooks.com"},"allowedPaymentMethods":[{"type":"CARD","parameters":{"allowedCardNetworks":["VISA","MASTERCARD","AMEX","DISCOVER","JCB"],"allowedAuthMethods":["PAN_ONLY","CRYPTOGRAM_3DS"],"billingAddressRequired":true,"billingAddressParameters":{"format":"FULL-ISO3166","phoneNumberRequired":true}},"tokenizationSpecification":{"type":"PAYMENT_GATEWAY","parameters":{"gateway":"shopify","gatewayMerchantId":"73758048501"}}}],"emailRequired":true},"customerAccountEmail":null,"environment":"PRODUCTION","availablePresentmentCurrencies":["USD"],"auth":[{"jwt":"eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJtZXJjaGFudElkIjoiMTY3MDg5NzM4MzA4ODQ5Njk3MzAiLCJtZXJjaGFudE9yaWdpbiI6ImVyZ29kZWJvb2tzLmNvbSIsImlhdCI6MTc5NjQ2NDQ5NH0.p6isVtkuoTbd_g_hhQxxLNRFAIoKIipskMua3otzUymn7e4d8OuZpEtBRvM_yzzIUcFg4vhdS0xUWo4tTdS1zA","expiresAt":1796507694},{"jwt":"eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJtZXJjaGFudElkIjoiMTY3MDg5NzM4MzA4ODQ5Njk3MzAiLCJtZXJjaGFudE9yaWdpbiI6ImVyZ29kZWJvb2tzLmNvbSIsImlhdCI6MTc5NjUwNzY5NH0.l1qVXf7zjZ1y0vDmcQxhC81C_zdtnLRPD5rYbdWteh2WLat77ww-uJKTqwx-0-ajeEuh_QPo7BWiJsglsw4zQQ","expiresAt":1796550894}],"cardsinkUrl":"https://checkout.pci.shopifyinc.com/sessions","cardsinkCallerIdentificationJwt":"eyJraWQiOiJ2MSIsInR5cCI6IkpXVCIsImFsZyI6IkhTMjU2In0.eyJjbGllbnRfaWQiOiIxMSIsImNsaWVudF9hY2NvdW50X2lkIjoiNzM3NTgwNDg1MDEiLCJ1bmlxdWVfaWQiOiIwMU05MlNYV1ZQRTdKM1FTRTZTMEVTTjdBWSIsImlhdCI6MTc5NjQ2NDQ5NH0.GXO3M1ww_xIlT2hFJUW32g_1af5baqMdTavmu7cT8kU"}}]" access-token="c0f52a66b386e9fa5c0ab4c2febc737c" buyer-country="US" buyer-locale="en" buyer-currency="USD" shop-id="73758048501" cart-id="hWNJvkeHlvoInWXr1lPe8t7K" enabled-flags="["7045a5ac","66a6333b"]" requires-shipping > <div class="wallet-button-wrapper"> <ul class='wallet-cart-grid wallet-cart-grid--skeleton' role="list" data-shopify-buttoncontainer="true"> <li data-testid='grid-cell' class='wallet-cart-button-container'><div class='wallet-cart-button wallet-cart-button__skeleton' role='button' disabled aria-hidden='true'> </div></li><li data-testid='grid-cell' class='wallet-cart-button-container'><div class='wallet-cart-button wallet-cart-button__skeleton' role='button' disabled aria-hidden='true'> </div></li><li data-testid='grid-cell' class='wallet-cart-button-container'><div class='wallet-cart-button wallet-cart-button__skeleton' role='button' disabled aria-hidden='true'> </div></li><li data-testid='grid-cell' class='wallet-cart-button-container'><div class='wallet-cart-button wallet-cart-button__skeleton' role='button' disabled aria-hidden='true'> </div></li> </ul> </div> </shopify-accelerated-checkout-cart> </div>