100% found this document useful (2 votes)
48 views

PDF Full Stack JavaScript 1st Edition Azat Mardan download

Mardan

Uploaded by

amhamdbrruku
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
48 views

PDF Full Stack JavaScript 1st Edition Azat Mardan download

Mardan

Uploaded by

amhamdbrruku
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 40

Get ebook downloads in full at ebookmeta.

com

Full Stack JavaScript 1st Edition Azat Mardan

https://ebookmeta.com/product/full-stack-javascript-1st-
edition-azat-mardan/

OR CLICK BUTTON

DOWNLOAD NOW

Explore and download more ebook at https://ebookmeta.com


Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.

Full Stack JavaScript: Learn Backbone.js, Node.js, and


MongoDB - Second Edition Azat Mardan

https://ebookmeta.com/product/full-stack-javascript-learn-backbone-js-
node-js-and-mongodb-second-edition-azat-mardan/

ebookmeta.com

100 TypeScript Mistakes and How to Avoid Them (MEAP V01)


Azat Mardan

https://ebookmeta.com/product/100-typescript-mistakes-and-how-to-
avoid-them-meap-v01-azat-mardan/

ebookmeta.com

Full Stack GraphQL Applications 1st Edition William Lyon

https://ebookmeta.com/product/full-stack-graphql-applications-1st-
edition-william-lyon/

ebookmeta.com

The Routledge Companion to Photography Representation and


Social Justice 1st Edition Moritz Neumüller (Editor)

https://ebookmeta.com/product/the-routledge-companion-to-photography-
representation-and-social-justice-1st-edition-moritz-neumuller-editor/

ebookmeta.com
Who Owns Knowledge Knowledge and the Law 1st Edition Nico
Stehr Bernd Weiler

https://ebookmeta.com/product/who-owns-knowledge-knowledge-and-the-
law-1st-edition-nico-stehr-bernd-weiler/

ebookmeta.com

Writing by Choice 3rd Edition Eric Henderson

https://ebookmeta.com/product/writing-by-choice-3rd-edition-eric-
henderson/

ebookmeta.com

Insight Guides Japan Travel Guide eBook 7th Edition


Insight Guides

https://ebookmeta.com/product/insight-guides-japan-travel-guide-
ebook-7th-edition-insight-guides/

ebookmeta.com

Lonely Planet Jordan 11th Edition Lonely Planet

https://ebookmeta.com/product/lonely-planet-jordan-11th-edition-
lonely-planet/

ebookmeta.com

Zero to Production in Rust: An Opinionated Introduction to


Backend Development 2022nd Edition Luca Palmieri

https://ebookmeta.com/product/zero-to-production-in-rust-an-
opinionated-introduction-to-backend-development-2022nd-edition-luca-
palmieri/
ebookmeta.com
Desserts for Stressed People 1st Edition Letizia Lorini

https://ebookmeta.com/product/desserts-for-stressed-people-1st-
edition-letizia-lorini/

ebookmeta.com
T HE E X P ER T ’S VOIC E ®

Full Stack
JavaScript
Learn Backbone.js,
Node.js and MongoDB

Azat Mardan

www.allitebooks.com
Full Stack
JavaScript
Learn Backbone.js, Node.js
and MongoDB

Second Edition

Azat Mardan

www.allitebooks.com
Full Stack JavaScript: Learn Backbone.js, Node.js and MongoDB
Copyright © 2015 by Azat Mardan
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part
of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations,
recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission
or information storage and retrieval, electronic adaptation, computer software, or by similar or
dissimilar methodology now known or hereafter developed. Exempted from this legal reservation are
brief excerpts in connection with reviews or scholarly analysis or material supplied specifically for
the purpose of being entered and executed on a computer system, for exclusive use by the purchaser
of the work. Duplication of this publication or parts thereof is permitted only under the provisions
of the Copyright Law of the Publisher’s location, in its current version, and permission for use must
always be obtained from Springer. Permissions for use may be obtained through RightsLink at the
Copyright Clearance Center. Violations are liable to prosecution under the respective Copyright Law.
ISBN-13 (pbk): 978-1-4842-1750-4
ISBN-13 (electronic): 978-1-4842-1751-1
Trademarked names, logos, and images may appear in this book. Rather than use a trademark
symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and
images only in an editorial fashion and to the benefit of the trademark owner, with no intention of
infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they
are not identified as such, is not to be taken as an expression of opinion as to whether or not they are
subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of
publication, neither the authors nor the editors nor the publisher can accept any legal responsibility
for any errors or omissions that may be made. The publisher makes no warranty, express or implied,
with respect to the material contained herein.

Managing Director: Welmoed Spahr


Lead Editor: Jeffrey Pepper
Editorial Board: Steve Anglin, Pramila Balan, Louise Corrigan, Jonathan Gennick,
Robert Hutchinson, Celestin Suresh John, Michelle Lowman, James Markham,
Susan McDermott, Matthew Moodie, Jeffrey Pepper, Douglas Pundick,
Ben Renow-Clarke, Gwenan Spearing
Coordinating Editor: Mark Powers
Copy Editors: Teresa Horton and Karen Jameson
Compositor: SPi Global
Indexer: SPi Global
Artist: SPi Global
Distributed to the book trade worldwide by Springer Science+Business Media New York,
233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505,
e-mail orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is a
California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM
Finance Inc). SSBM Finance Inc is a Delaware corporation.
For information on translations, please e-mail rights@apress.com, or visit www.apress.com.
Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional
use. eBook versions and licenses are also available for most titles. For more information, reference
our Special Bulk Sales–eBook Licensing web page at www.apress.com/bulk-sales.
Any source code or other supplementary materials referenced by the author in this text is available
to readers at www.apress.com/9781484217504. For detailed information about how to locate your
book’s source code, go to www.apress.com/source-code/. Readers can also access source code at
SpringerLink in the Supplementary Material section for each chapter.

www.allitebooks.com
To my parents, Almas and Alsu, who bought me my first computer, and
let me use the phone line for dial-up Internet

www.allitebooks.com
Contents at a Glance

About the Author���������������������������������������������������������������������������� xiii


Acknowledgments��������������������������������������������������������������������������� xv
Preface������������������������������������������������������������������������������������������ xvii
Introduction������������������������������������������������������������������������������������ xix


■Chapter 1: Basics��������������������������������������������������������������������������� 1

■Chapter 2: Setup��������������������������������������������������������������������������� 21

■Chapter 3: jQuery and Parse.com������������������������������������������������� 43

■Chapter 4: Intro to Backbone.js���������������������������������������������������� 79

■Chapter 5: Backbone.js and Parse.com�������������������������������������� 121

■Chapter 6: Intro to Node.js��������������������������������������������������������� 137

■Chapter 7: Intro to MongoDB������������������������������������������������������ 155

■Chapter 8: Putting It All Together����������������������������������������������� 167

■Appendix A: Conclusion and Further Reading���������������������������� 187

Index���������������������������������������������������������������������������������������������� 193

www.allitebooks.com
Contents

About the Author���������������������������������������������������������������������������� xiii


Acknowledgments��������������������������������������������������������������������������� xv
Preface������������������������������������������������������������������������������������������ xvii
Introduction������������������������������������������������������������������������������������ xix


■Chapter 1: Basics��������������������������������������������������������������������������� 1
Front-End Definitions������������������������������������������������������������������������������ 1
Web Request Cycle��������������������������������������������������������������������������������������������������� 2
Mobile Development������������������������������������������������������������������������������������������������� 3
HyperText Markup Language������������������������������������������������������������������������������������ 4
Cascading Style Sheets�������������������������������������������������������������������������������������������� 6
JavaScript����������������������������������������������������������������������������������������������������������������� 7

Agile Methodologies������������������������������������������������������������������������������ 13
Scrum��������������������������������������������������������������������������������������������������������������������� 13
Test-Driven Development��������������������������������������������������������������������������������������� 14
Continuous Deployment and Integration���������������������������������������������������������������� 14
Pair Programming��������������������������������������������������������������������������������������������������� 15

Back-End Definitions����������������������������������������������������������������������������� 15
Node.js�������������������������������������������������������������������������������������������������������������������� 15
NoSQL and MongoDB��������������������������������������������������������������������������������������������� 16
Cloud Computing���������������������������������������������������������������������������������������������������� 16

vii

www.allitebooks.com
■ Contents

HTTP Requests and Responses������������������������������������������������������������������������������ 17


RESTful API������������������������������������������������������������������������������������������������������������� 18

Summary����������������������������������������������������������������������������������������������� 19

■Chapter 2: Setup��������������������������������������������������������������������������� 21
Local Setup������������������������������������������������������������������������������������������� 21
Development Folder����������������������������������������������������������������������������������������������� 22
Browsers���������������������������������������������������������������������������������������������������������������� 23
IDEs and Text Editors���������������������������������������������������������������������������������������������� 25
Version Control Systems����������������������������������������������������������������������������������������� 26

Local HTTP Servers������������������������������������������������������������������������������� 29


Database: MongoDB����������������������������������������������������������������������������������������������� 30
Other Components�������������������������������������������������������������������������������������������������� 33

Cloud Setup������������������������������������������������������������������������������������������� 36
SSH Keys���������������������������������������������������������������������������������������������������������������� 36
GitHub��������������������������������������������������������������������������������������������������������������������� 37
Windows Azure������������������������������������������������������������������������������������������������������� 38
Heroku�������������������������������������������������������������������������������������������������������������������� 40

Summary����������������������������������������������������������������������������������������������� 41

■Chapter 3: jQuery and Parse.com������������������������������������������������� 43
Definitions��������������������������������������������������������������������������������������������� 44
JavaScript Object Notation������������������������������������������������������������������������������������� 44
AJAX����������������������������������������������������������������������������������������������������������������������� 45
Cross-Domain Calls������������������������������������������������������������������������������������������������ 45

jQuery Functions����������������������������������������������������������������������������������� 46
Twitter Bootstrap����������������������������������������������������������������������������������� 47

viii

www.allitebooks.com
■ Contents

LESS������������������������������������������������������������������������������������������������������ 50
LESS Variables�������������������������������������������������������������������������������������������������������� 51
LESS Mix-ins���������������������������������������������������������������������������������������������������������� 52
LESS Operations����������������������������������������������������������������������������������������������������� 53

An Example Using a Third-Party API (Twitter) and jQuery������������������� 54


Parse.com��������������������������������������������������������������������������������������������� 61
Message Board with Parse.com Overview�������������������������������������������� 65
Message Board with Parse.com: REST API and jQuery Version������������������������������ 65
Pushing to GitHub��������������������������������������������������������������������������������������������������� 72

Deployment to Windows Azure�������������������������������������������������������������� 73


Deployment to Heroku��������������������������������������������������������������������������� 74
Updating and Deleting Messages���������������������������������������������������������� 77
Summary����������������������������������������������������������������������������������������������� 77

■Chapter 4: Intro to Backbone.js���������������������������������������������������� 79
Setting Up Backbone.js App from Scratch��������������������������������������������� 80
Backbone.js Dependencies������������������������������������������������������������������������������������� 80

Working with Backbone.js Collections�������������������������������������������������� 83


Backbone.js Event Binding�������������������������������������������������������������������� 88
Backbone.js Views and Subviews with Underscore.js�������������������������� 92
Refactoring Backbone.js Code������������������������������������������������������������ 100
AMD and Require.js for Backbone.js Development����������������������������� 107
Require.js for Backbone.js Production������������������������������������������������ 115
Super Simple Backbone.js Starter Kit������������������������������������������������� 118
Summary��������������������������������������������������������������������������������������������� 119

ix

www.allitebooks.com
■ Contents


■Chapter 5: Backbone.js and Parse.com�������������������������������������� 121
Message Board with Parse.com: JavaScript SDK and
Backbone.js Version���������������������������������������������������������������������������� 121
Taking Message Board Further����������������������������������������������������������� 134
Summary��������������������������������������������������������������������������������������������� 135

■Chapter 6: Intro to Node.js��������������������������������������������������������� 137
Building “Hello World” in Node.js�������������������������������������������������������� 137
Node.js Core Modules�������������������������������������������������������������������������� 139
http����������������������������������������������������������������������������������������������������������������������� 139
util������������������������������������������������������������������������������������������������������������������������ 140
querystring����������������������������������������������������������������������������������������������������������� 140
url������������������������������������������������������������������������������������������������������������������������� 140
fs��������������������������������������������������������������������������������������������������������������������������� 140
npm Node Package Manager������������������������������������������������������������������������������� 141

Deploying "Hello World" to PaaS��������������������������������������������������������� 142


Deploying to Windows Azure��������������������������������������������������������������� 143
Deploying to Heroku���������������������������������������������������������������������������� 143
Message Board with Node.js: Memory Store Version������������������������������������������� 144
Unit Testing Node.js���������������������������������������������������������������������������������������������� 144
Summary��������������������������������������������������������������������������������������������� 153

■Chapter 7: Intro to MongoDB������������������������������������������������������ 155
MongoDB Shell������������������������������������������������������������������������������������ 155
BSON��������������������������������������������������������������������������������������������������� 157
MongoDB Native Driver����������������������������������������������������������������������� 157
MongoDB on Heroku: MongoLab��������������������������������������������������������� 159
Message Board: MongoDB Version������������������������������������������������������ 163
Summary��������������������������������������������������������������������������������������������� 166

www.allitebooks.com
■ Contents


■Chapter 8: Putting It All Together����������������������������������������������� 167
Adding CORS for Different Domain Deployment���������������������������������� 168
Message Board UI������������������������������������������������������������������������������� 169
Message Board API����������������������������������������������������������������������������� 174
Deployment to Heroku������������������������������������������������������������������������� 178
Same Domain Deployment Server������������������������������������������������������ 179
Deployment to Amazon Web Services������������������������������������������������� 182
Summary��������������������������������������������������������������������������������������������� 185

■Appendix A: Conclusion and Further Reading���������������������������� 187
Conclusion������������������������������������������������������������������������������������������� 187
Further Reading����������������������������������������������������������������������������������� 188
JavaScript Resources and Free E-Books�������������������������������������������������������������� 188
JavaScript Books�������������������������������������������������������������������������������������������������� 189
Node.js Resources and Free E-Books������������������������������������������������������������������� 190
Node.js Books������������������������������������������������������������������������������������������������������� 190
Interactive Online Classes and Courses��������������������������������������������������������������� 191
Startup Books and Blogs�������������������������������������������������������������������������������������� 191

Index���������������������������������������������������������������������������������������������� 193

xi

www.allitebooks.com
About the Author

Azat Mardan has over 14 years of experience in web,


mobile, and software development. With a Bachelor’s
degree in Informatics and a Master of Science degree
in Information Systems Technology, Azat possesses
deep academic knowledge as well as extensive practical
experience. Azat is an experienced software engineer,
author and educator. He has published 11 books and
counting.
Currently, Azat works as a Technology Fellow
at Capital One Financial Corporation, a technology
company with a focus on finance. Before that, Azat
was a Team Lead at DocuSign, where his team rebuilt
50 million user products (DocuSign web app) using the tech stack of Node.js, Express.js,
Backbone.js, CoffeeScript, Jade, Stylus, and Redis.
Recently, he worked as an engineer at the curated social media news aggregator web
site, Storify.com (acquired by LiveFyre), which is used by BBC, NBC, CNN, the White
House, and others. Storify runs everything on Node.js unlike other companies. It’s the
maintainer of the open source library jade browser.
Before that, Azat worked as a CTO/Cofounder at Gizmo—an enterprise cloud
platform for mobile marketing campaigns, and has undertaken the prestigious 500
Startups business accelerator program.
Prior to this, Azat was developing the developed mission-critical applications for
government agencies in Washington, DC, including the National Institutes of Health,
the National Center for Biotechnology Information, and the Federal Deposit Insurance
Corporation, as well as Lockheed Martin.
Azat is a frequent attendee at Bay Area tech meet-ups and hackathons (AngelHack
hackathon ’12 finalist with team FashionMetric.com, which went on to raise venture
capital from Mark Cuban and TechStars).
In addition, Azat teaches technical classes at General Assembly, Hack Reactor,
pariSOMA, and Marakana (acquired by Twitter) to much acclaim.
In his spare time, he writes about technology on his blog: Webapplog.com, which was
a number one in “express.js tutorial” Google search results for some time.

xiii
■ About the Author

Azat is also the author of Pro Express.js, Practical Node.js and Node Program, and
others. Azat is the creator of open source Node.js projects, including ExpressWorks,
mongoui, and HackHall.
You can reach Azat and say hi using one of these methods:
Twitter: [@azat_co](https://twitter.com/azat_co) - Azat loves getting "Hi" on
Twitter
Facebook
Blog: webapplog.com
GitHub: github.com/azat-co/fullstack-javascript
Share on Twitter
Tweet “I’m starting FullStack JavaScript by @azat_co @Apress ” by opening this link
http://ctt.ec/he3Ug.

xiv
Acknowledgments

I would like to thank the team of early Node contributors bringing JavaScript to the
servers. Without them, the full stack JavaScript development wouldn’t be possible.
I’m grateful to my copy and content editors at Apress specifially to James Markham,
Mark Powers, Teresa Horton, and Karen Jameson. They accomplished an amazing feat by
bringing this book to life in a span of a few weeks.
Also, I’m grateful to the students of Hack Reactor, Marakana, pariSOMA, and General
Assembly where I taught and used early Full Stack JavaScript (or its parts) training
material.

xv
Preface

I’m writing this as I’m sitting at the San Francisco airport waiting for my flight to Portland,
Oregon, for the biggest Node.js conference. I’ll be speaking there about Node.js. It’s scary
and funny at the same time to think that I started to learn Node only three years ago. Yes,
I remember how I decided that the best way to learn is to teach others. For this reason
I started teaching my first Node classes and writing this book. The book was mostly for
me, so I could remember how to push Heroku or how to create Node servers that talk to
MongoDB. It was called Rapid Prototyping with JS back then. Three years sped away; I
published a few more Node books as well as released several Node apps in production;
and a few months ago Apress approached me wanting to publish an updated edition
under a new title.
The main reason I bet my time and energy on JavaScript and Node in the first place
is that I felt both intuitively and logically the potential of the full stack JavaScript. The one
language to rule the whole stack across all the layers. Logically I understood the code
reuse, expressiveness, and performance advantages of Node.js and the ever-increasing
importance of front-end development with MVC-like frameworks such as Backbone.
Intuitively, I just freaking fell in love with JavaScript both on the browser and on the
server.
Yes, I used JavaScript for many years but it was more pain than fun. Not anymore.
I was able to get a sense of what’s going on at the front end while at the same time getting
all the power and flexibility on the server. My brain started to think 5, maybe 10 times
faster than before because I started to remember all the obscure methods from Array or
String objects. I stopped having Mozilla Developer Network or Google open next to my
code editor. And what a relief when you don’t need to wait for the compiler each time that
you want to test something really quickly.
The airline crew announced my boarding. I need to get on the plane, but I hope this
easy, beginner-friendly manual will open the world of full stack JavaScript and cloud
computing. Jump on the train of this amazing technology with me.

xvii
Introduction

The kind of programming that C provides will probably remain similar


absolutely or slowly decline in usage, but relatively, JavaScript or its
variants, or XML, will continue to become more central.
—Dennis Ritchie
In this chapter, we cover:
• Reasons behind full stack JavaScript development in general and
for the writing of this book;
• Answers to questions what to expect and what not, what are
prerequisites;
• Suggestions on how to use the book and examples;
• Explanation of the book’s notation format.
Full Stack JavaScript is a hands-on book that introduces you to rapid software
prototyping using the latest cutting-edge web and mobile technologies including Node.js,
MongoDB, Twitter Bootstrap, LESS, jQuery, Parse.com, Heroku, and others.

Why This Book?


This book was borne out of frustration. I have been in software engineering for many
years, and when I started learning Node.js and Backbone.js, I learned the hard way that
their official documentation and the Internet lack in quick start guides and examples.
Needless to say, it was virtually impossible to find all of the tutorials for JS-related modern
technologies in one place.
The best way to learn is to do, right? Therefore, I’ve used the approach of small
simple examples, that is, quick start guides, to expose myself to the new cool tech. After
I was done with the basic apps, I needed some references and organization. I started to
write this manual mostly for myself, so I can understand the concepts better and refer to
the samples later. Then StartupMonthly and I taught a few two-day intensive classes on
the same subject—helping experienced developers to jump-start their careers with only-
one-language development, that is, JavaScript. The manual we used was updated and
iterated many times based on the feedback received. The end result is this book.

xix
Other documents randomly have
different content
Poems & Ballads. Third Series. Cr. 8vo, 7s.
Songs before Sunrise. Crown 8vo, 10s. 6d.
Bothwell: A Tragedy. Crown 8vo, 12s. 6d.
Songs of Two Nations. Crown 8vo, 6s.
George Chapman. (See Vol. II. of G. Chapman’s Works.) Crown
8vo, 3s. 6d.
Essays and Studies. Crown 8vo, 12s.
Erechtheus: A Tragedy. Crown 8vo, 6s.
A Note on Charlotte Bronte. Cr. 8vo, 6s.
A Study of Shakespeare. Crown 8vo, 8s.
Songs of the Springtides. Crown 8vo, 6s.
Studies in Song. Crown 8vo, 7s.
Mary Stuart: A Tragedy. Crown 8vo, 8s.
Tristram of Lyonesse. Crown 8vo, 9s.
A Century of Roundels. Small 4to, 8s.
A Midsummer Holiday. Crown 8vo, 7s.
Marino Faliero: A Tragedy. Crown 8vo, 6s.
A Study of Victor Hugo. Crown 8vo, 6s.
Miscellanies. Crown 8vo, 12s.
Locrine: A Tragedy. Crown 8vo, 6s.
A Study of Ben Jonson. Crown 8vo, 7s.
The Sisters: A Tragedy. Crown 8vo, 6s.
Astrophel, &c. Crown 8vo, 7s.
Studies in Prose and Poetry. Cr. 8vo, 9s.
The Tale of Balen. Crown 8vo, 7s.
Rosamund: A Play. Crown 8vo, 6s.

Syntax’s (Dr.) Three Tours: In Search of the Picturesque, in Search


of Consolation, and in Search of a Wife. With Rowlandson’s
Coloured Illustrations, and Life of the Author by J. C. Hotten.
Crown 8vo, cloth extra, 7s. 6d.
Taine’s History of English Literature. Translated by Henry Van
Laun. Four Vols., small demy 8vo, cloth boards, 30s.—Popular
Edition, Two Vols., large crown 8vo, cloth extra, 15s.
Taylor (Bayard).—Diversions of the Echo Club: Burlesques of
Modern Writers. Post 8vo, cloth limp, 2s.
Taylor (Tom).—Historical Dramas: ‘Jeanne d’Arc,’ ‘’Twixt Axe
and Crown,’ ‘The Fool’s Revenge,’ ‘Arkwright’s Wife,’ ‘Anne
Boleyn,’ ‘Plot and Passion.’ Crown 8vo, 1s. each.

Temple (Sir Richard, G.C.S.I.).—A Bird’s-eye View of


Picturesque India. With 32 Illustrations by the Author. Crown 8vo,
cloth, gilt top, 6s.

Tennyson (Lord): A Biographical Sketch. By H. J. Jennings. Post


8vo, portrait cover, 1s.; cloth, 1s. 6d.

Thackerayana: Notes and Anecdotes. With Coloured Frontispiece


and Hundreds of Sketches by William Makepeace Thackeray.
Crown 8vo, cloth extra, 3s. 6d.

Thames, A New Pictorial History of the. By A. S. Krausse. With


340 Illustrations. Post 8vo, cloth, 1s. 6d.
Thomas (Annie).—The Siren’s Web: A Romance of London
Society. Crown 8vo, cloth, 3s. 6d. [Shortly.

Thomas (Bertha), Novels by.


Proud Maisie. Crown 8vo, cloth, 3s. 6d.
The Violin-Player. Crown 8vo, cloth, 3s. 6d.; post 8vo, picture boards, 2s.
Cressida. Post 8vo, illustrated boards, 2s.

Thomson’s Seasons, and The Castle of Indolence. With


Introduction by Allan Cunningham, and 48 Illustrations. Post 8vo,
half-bound, 2s.

Thornbury (Walter), Books by.


The Life and Correspondence of J. M. W. Turner. With Eight
Illustrations in Colours and Two Woodcuts. New and Revised
Edition. Crown 8vo, cloth, 3s. 6d.

Post 8vo, illustrated boards, 2s. each.


Old Stories Re-told.
Tales for the Marines.

Timbs (John), Works by. Crown 8vo, cloth, 3s. 6d. each.
Clubs and Club Life in London: Anecdotes of its Famous
Coffee-houses, Hostelries, and Taverns. With 41 Illustrations.
English Eccentrics and Eccentricities: Stories of Delusions,
Impostures, Sporting Scenes, Eccentric Artists, Theatrical
Folk, &c. With 48 Illustrations.

Transvaal (The). By John de Villiers. With Map. Crown 8vo, 1s.

Trollope (Anthony), Novels by.


Crown 8vo, cloth extra, 3s. 6d. each; post 8vo, illustrated boards, 2s. each.
The Way We Live Now.
Frau Frohmann.
Marion Fay.
Mr. Scarborough’s Family.
The Land-Leaguers.

Post 8vo, illustrated boards, 2s. each.


Kept In the Dark.
The Golden Lion of Granpere.
The American Senator.
John Caldigate.

Trollope (Frances E.), Novels by.


Crown 8vo, cloth extra, 3s. 6d. each; post 8vo, illustrated boards, 2s. each.
Like Ships upon the Sea.
Mabel’s Progress.
Anne Furness.

Trollope (T. A.).—Diamond Cut Diamond. Post 8vo, illust. bds., 2s.
Trowbridge (J. T.).—Farnell’s Folly. Post 8vo, illust. boards, 2s.

Twain’s (Mark) Books.


Crown 8vo, cloth extra, 3s. 6d. each.
The Choice Works of Mark Twain. Revised and Corrected
throughout by the Author. With Life, Portrait, and numerous
Illustrations.
Roughing It; and The Innocents at Home. With 200
Illustrations by F. A. Fraser.
The American Claimant. With 81 Illustrations by Hal Hurst
and others.
Tom Sawyer Abroad. With 26 Illustrations by Dan Beard.
Tom Sawyer, Detective, &c. With Photogravure Portrait.
Pudd’nhead Wilson. With Portrait and Six Illustrations by Louis
Loeb.
Mark Twain’s Library of Humour. With 197 Illustrations by E.
W. Kemble.

Crown 8vo, cloth extra, 3s. 6d. each; post 8vo, picture boards, 2s. each.
A Tramp Abroad. With 314 Illustrations.
The Innocents Abroad; or, The New Pilgrim’s Progress. With
234 Illustrations. (The Two Shilling Edition is entitled Mark
Twain’s Pleasure Trip.)
The Gilded Age. By Mark Twain and C. D. Warner. With 212
Illustrations.
The Adventures of Tom Sawyer. With 111 Illustrations.
The Prince and the Pauper. With 190 Illustrations.
Life on the Mississippi. With 300 Illustrations.
The Adventures of Huckleberry Finn. With 174 Illustrations by
E. W. Kemble.
A Yankee at the Court of King Arthur. With 220 Illustrations by
Dan Beard.
The Stolen White Elephant.
The £1,000,000 Bank-Note.

Mark Twain’s Sketches. Post 8vo, illustrated boards, 2s.


Personal Recollections of Joan of Arc. With Twelve
Illustrations by F. V. Du Mond. Crown 8vo, cloth, 6s.
More Tramps Abroad. Crown 8vo, cloth, gilt top, 6s.

An Author’s Edition de Luxe of the Works of Mark Twain, in


22 Volumes (limited to 620 numbered copies, of which 600
are for sale in Great Britain), is in preparation, and a
Prospectus will shortly be ready.

Tytler (C. C. Fraser-).—Mistress Judith: A Novel. Crown 8vo, cloth


extra, 3s. 6d.; post 8vo, illustrated boards, 2s.

Tytler (Sarah), Novels by.


Crown 8vo, cloth extra, 3s. 6d. each; post 8vo, illustrated boards, 2s. each.
Lady Bell.
Buried Diamonds.
The Blackhall Ghosts.

Post 8vo, illustrated boards, 2s. each.


What She Came Through.
Citoyenne Jacqueline.
The Bride’s Pass.
Saint Mungo’s City.
The Huguenot Family.
Noblesse Oblige.
Disappeared.
Beauty and the Beast.

Crown 8vo, cloth, 3s. 6d. each.


The Macdonald Lass. With Frontispiece.
The Witch-Wife.
Mrs. Carmichael’s Goddesses.
Rachel Langton.
Sapphira.
A Honeymoon’s Eclipse. [Shortly.

Upward (Allen), Novels by.


A Crown of Straw. Crown 8vo, cloth, 6s.

Crown 8vo, cloth, 3s. 6d. each; post 8vo, picture boards, 2s. each.
The Queen Against Owen.
The Prince of Balkistan.

‘God Save the Queen!’ a Tale of ’37. Crown 8vo, decorated cover,
1s.; cloth, 2s.

Vashti and Esther. By ‘Belle’ of The World. Cr. 8vo, cloth, 3s. 6d.
Vizetelly (Ernest A.), Books by. Crown 8vo, cloth, 3s. 6d. each.
The Scorpion: A Romance of Spain. With a Frontispiece.
With Zola in England: A Story of Exile. With 4 Portraits.

Wagner (Leopold).—How to Get on the Stage, and how to


Succeed there. Crown 8vo, cloth, 2s. 6d.
Walford’s (Edward, M.A.) County Families of the United
Kingdom (1900). Containing the Descent, Birth, Marriage,
Education, &c., of 12,000 Heads of Families, their Heirs, Offices,
Addresses, Clubs, &c. Royal 8vo, cloth gilt, 50s. [Preparing.

Waller (S. E.).—Sebastiani’s Secret. With 9 Illusts. Cr. 8vo, cl., 6s.
Walton and Cotton’s Complete Angler; or, The Contemplative
Man’s Recreation, by Izaak Walton; and Instructions How to
Angle, for a Trout or Grayling in a clear Stream, by Charles
Cotton. With Memoirs and Notes by Sir Harris Nicolas, and 61
Illustrations. Crown 8vo, cloth antique, 7s. 6d.

Walt Whitman, Poems by. Edited, with Introduction, by William M.


Rossetti. With Portrait. Crown 8vo, hand-made paper and buckram, 6s.
Warden (Florence).—Joan, the Curate. Crown 8vo, cloth, 3s. 6d.
Warman (Cy).—The Express Messenger, and other Tales of the
Rail. Crown 8vo, cloth, 3s. 6d.
Warner (Charles Dudley).—A Roundabout Journey. Crown 8vo,
cloth extra, 6s.

Warrant to Execute Charles I. A Facsimile, with the 59 Signatures


and Seals. Printed on paper 22 in. by 14 in., 2s.
Warrant to Execute Mary Queen of Scots. A Facsimile,
including Queen Elizabeth’s Signature and the Great Seal. 2s.

Washington’s (George) Rules of Civility Traced to their Sources


and Restored by Moncure D. Conway. Fcap. 8vo, Japanese vellum,
2s. 6d.

Wassermann (Lillias) and Aaron Watson.—The Marquis of


Carabas. Post 8vo, illustrated boards, 2s.
Weather, How to Foretell the, with the Pocket Spectroscope. By
F. W. Cory. With Ten Illustrations. Crown 8vo, 1s.; cloth, 1s. 6d.
Westall (William), Novels by.
Trust Money. Crown 8vo, cloth, 3s. 6d.; post 8vo, illustrated boards, 2s.

Crown 8vo, cloth. 6s. each.


As a Man Sows.
With the Red Eagle.
A Red Bridal.

New Editions. Crown 8vo, cloth, 3s. 6d. each.


A Woman Tempted Him.
For Honour and Life.
Her Two Millions.
Two Pinches of Snuff.
Roy of Roy’s Court.
Nigel Fortescue.
Ben Clough.
Birch Dene.
The Old Factory.
Sons of Belial.
The Phantom City.
Ralph Norbreck’s Trust.
A Queer Race.
Red Ryvington.
Strange Crimes.

Westbury (Atha).—The Shadow of Hilton Fernbrook: A Romance


of Maoriland. Crown 8vo, cloth, 3s. 6d.
White (Gilbert).—The Natural History of Selborne. Post 8vo, printed
on laid paper and half-bound, 2s.
Wilde (Lady).—The Ancient Legends, Mystic Charms, and
Superstitions of Ireland; with Sketches of the Irish Past. Crown
8vo, cloth, 3s. 6d.

Williams (W. Mattieu, F.R.A.S.), Works by.


Science in Short Chapters. Crown 8vo, cloth extra, 7s. 6d.
A Simple Treatise on Heat. With Illustrations. Crown 8vo, cloth, 2s.
6d.
The Chemistry of Cookery. Crown 8vo, cloth extra, 6s.
The Chemistry of Iron and Steel Making. Crown 8vo, cloth extra,
9s.
A Vindication of Phrenology. With Portrait and 43 Illusts. Demy
8vo, cloth extra, 12s. 6d.

Williamson (Mrs. F. H.).—A Child Widow. Post 8vo, bds., 2s.


Wills (C. J.), Novels by.
An Easy-going Fellow. Crown 8vo, cloth, 3s. 6d.
His Dead Past. Crown 8vo, cloth, 6s.

Wilson (Dr. Andrew, F.R.S.E.), Works by.


Chapters on Evolution. With 259 Illustrations. Crown 8vo, cloth
extra, 7s. 6d.
Leaves from a Naturalist’s Note-Book. Post 8vo, cloth limp, 2s. 6d.
Leisure-Time Studies. With Illustrations. Crown 8vo, cloth extra, 6s.
Studies in Life and Sense. With 36 Illustrations. Crown 8vo, cloth,
3s. 6d.
Common Accidents: How to Treat Them. With illustrations.
Crown 8vo, 1s.; cloth, 1s. 6d.
Glimpses of Nature. With 35 Illustrations. Crown 8vo, cloth extra,
3s. 6d.

Winter (John Strange), Stories by. Post 8vo, illustrated boards, 2s. each;
cloth limp, 2s. 6d. each.
Cavalry Life.
Regimental Legends.
Cavalry Life and Regimental Legends. Library Edition, set in
new type and handsomely bound. Crown 8vo, cloth, 3s. 6d.
A Soldier’s Children. With 34 Illustrations by E. G. Thomson
and E. Stuart Hardy. Crown 8vo, cloth extra, 3s. 6d.

Wissmann (Hermann von).—My Second Journey through


Equatorial Africa. With 92 Illustrations. Demy 8vo, cloth, 16s.
Wood (H. F.), Detective Stories by. Post 8vo, boards, 2s. each.
The Passenger from Scotland Yard.
The Englishman of the Rue Cain.

Woolley (Celia Parker).—Rachel Armstrong; or, Love and


Theology. Post 8vo, illustrated boards, 2s.; cloth, 2s. 6d.
Wright (Thomas, F.S.A.), Works by.
Caricature History of the Georges; or, Annals of the House of
Hanover. Compiled from Squibs, Broadsides, Window
Pictures, Lampoons, and Pictorial Caricatures of the Time.
With over 300 Illustrations. Crown 8vo, cloth, 3s. 6d.
History of Caricature and of the Grotesque in Art, Literature,
Sculpture, and Painting. Illustrated by F. W. Fairholt, F.S.A.
Crown 8vo, cloth, 7s. 6d.

Wynman (Margaret).—My Flirtations. With 13 Illustrations by J.


Bernard Partridge. Post 8vo, cloth limp, 2s.
Yates (Edmund), Novels by. Post 8vo, illustrated boards, 2s. each.
The Forlorn Hope.
Castaway.

Zangwill (I.).—Ghetto Tragedies. With Three Illustrations by A. S.


Boyd. Fcap. 8vo, cloth, 2s. net.
‘ZZ’ (L. Zangwill).—A Nineteenth Century Miracle. Cr. 8vo, 3s. 6d.
Zola (Emile), Novels by. Crown 8vo, cloth extra, 3s. 6d. each.
The Fortune of the Rougons. Edited by Ernest A. Vizetelly.
The Abbe Mouret’s Transgression. Edited by Ernest A.
Vizetelly. [Shortly.
His Excellency (Eugene Rougon). With an Introduction
by Ernest A. Vizetelly.
The Dram-Shop (L’Assommoir). With Introduction by E. A.
Vizetelly.
The Fat and the Thin. Translated by Ernest A. Vizetelly.
Money. Translated by Ernest A. Vizetelly.
The Downfall. Translated by E. A. Vizetelly.
The Dream. Translated by Eliza Chase. With Eight Illustrations
by Jeanniot.
Doctor Pascal. Translated by E. A. Vizetelly. With Portrait of
the Author.
Lourdes. Translated by Ernest A.Vizetelly.
Rome. Translated by Ernest A. Vizetelly.
Paris. Translated by Ernest A. Vizetelly.
Fruitfulness (Fécondité). Translated by E. A. Vizetelly.
[Shortly.

With Zola in England. By Ernest A. Vizetelly. With Four Portraits.


Crown 8vo, cloth, 3s. 6d.
SOME BOOKS CLASSIFIED IN SERIES.
∵ For fuller cataloguing, see alphabetical arrangement, pp. 1-26.

The Mayfair Library.


Post 8vo, cloth limp, 2s. 6d. per Volume.
Quips and Quiddities. By W. D. Adams.
The Agony Column of ‘The Times.’
Melancholy Anatomised: Abridgment of Burton.
A Journey Round My Room. By X. de Maistre. Translated by
Henry Attwell.
Poetical Ingenuities. By W. T. Dobson.
The Cupboard Papers. By Fin-Bec.
W. S. Gilbert’s Plays. Three Series.
Songs of Irish Wit and Humour.
Animals and their Masters. By Sir A. Helps.
Social Pressure. By Sir A. Helps.
Autocrat of Breakfast-Table. By O. W. Holmes.
Curiosities of Criticism. By H. J. Jennings.
Pencil and Palette. By R. Kempt.
Little Essays: from Lamb’s Letters.
Forensic Anecdotes. By Jacob Larwood.
Theatrical Anecdotes. By Jacob Larwood.
Ourselves. By E. Lynn Linton.
Witch Stories. By E. Lynn Linton.
Pastimes and Players. By R. Macgregor.
New Paul and Virginia. By W. H. Mallock.
The New Republic. By W. H. Mallock.
Muses of Mayfair. Edited by H. C. Pennell.
Thoreau: His Life and Aims. By H. A. Page.
Puck on Pegasus. By H. C. Pennell.
Pegasus Re-saddled. By H. C. Pennell.
Puniana. By Hon. Hugh Rowley.
More Puniana. By Hon. Hugh Rowley.
The Philosophy of Handwriting.
By Stream and Sea. By William Senior.
Leaves from a Naturalist’s Note-Book. By Dr. Andrew Wilson.

The Golden Library.


Post 8vo, cloth limp, 2s. per Volume.
Songs for Sailors. By W. C. Bennett.
Lives of the Necromancers. By W. Godwin.
The Autocrat of the Breakfast Table. By Oliver Wendell
Holmes.
Tale for a Chimney Corner. By Leigh Hunt.
Scenes of Country Life. By Edward Jesse.
La Mort d’Arthur: Selections from Mallory.
The Poetical Works of Alexander Pope.
Maxims and Reflections of Rochefoucauld.
Diversions of the Echo Club. Bayard Taylor.

Handy Novels.
Fcap. 8vo, cloth boards, 1s. 6d. each.
A Lost Soul. By W. L. Alden.
Dr. Palliser’s Patient. By Grant Allen.
Monte Carlo Stories. By Joan Barrett.
Black Spirits and White. By R. A. Cram.
Seven Sleepers of Ephesus. M. E. Coleridge.
Taken from the Enemy. By H. Newbolt.
The Old Maid’s Sweetheart. By A. St. Aubyn.
Modest Little Sara. By Alan St. Aubyn.

My Library.
Printed on laid paper, post 8vo, half-Roxburghe, 2s. 6d. each.
The Journal of Maurice de Guerin.
The Dramatic Essays of Charles Lamb.
Citation and Examination of William Shakspeare. By W. S.
Landor.
Christie Johnstone. By Charles Reade.
Peg Woffington. By Charles Reade.

The Pocket Library.


Post 8vo, printed on laid paper and bf.-bd., 2s. each.
Gastronomy. By Brillat-Savarin.
Robinson Crusoe. Illustrated by G. Cruikshank.
Autocrat of the Breakfast-Table and The Professor at the
Breakfast-Table. By O. W. Holmes.
Provincial Letters of Blaise Pascal.
Whims and Oddities. By Thomas Hood.
Leigh Hunt’s Essays. Edited by E. Ollier.
The Barber’s Chair. By Douglas Jerrold.
The Essays of Elia. By Charles Lamb.
Anecdotes of the Clergy. By Jacob Larwood.
The Epicurean, &c. By Thomas Moore.
Plays by Richard Brinsley Sheridan.
Gulliver’s Travels, &c. By Dean Swift.
Thomson’s Seasons. Illustrated.
White’s Natural History of Selborne.

Popular Sixpenny Novels.


Medium 8vo, 6d. each; cloth, 1s. each.
All Sorts and Conditions of Men. By Walter Besant.
The Golden Butterfly. By Walter Besant and James Rice.
The Deemster. By Hall Caine.
The Shadow of a Crime. By Hall Caine.
Antonina. By Wilkie Collins.
The Moonstone. By Wilkie Collins.
The Woman in White. By Wilkie Collins.
The Dead Secret. By Wilkie Collins.
Moths. By Ouida.
Under Two Flags. By Ouida.
By Proxy. By James Payn.
Peg Woffington; and Christie Johnstone. By Charles Reade.
The Cloister and the Hearth. By Charles Reade.
It is Never Too Late to Mend. By Charles Reade.
Hard Cash. By Charles Reade.
THE PICCADILLY NOVELS.
Library Editions of Novels, many Illustrated, crown 8vo, cloth extra,
3s. 6d. each.

THE PICCADILLY NOVELS.


Library Editions of Novels, many Illustrated, crown 8vo, cloth
extra, 3s. 6d. each.
By Mrs. ALEXANDER.
Valerie’s Fate.
A Life Interest.
Mona’s Choice.
By Woman’s Wit.

By F. M. ALLEN.—Green as Grass.
By GRANT ALLEN.
Philistia.
Babylon.
Strange Stories.
For Maimie’s Sake.
In all Shades.
The Beckoning Hand.
The Devil’s Die.
This Mortal Coil.
The Tents of Shem.
The Great Taboo.
Dumaresq’s Daughter.
Duchess of Powysland.
Blood Royal.
I. Greet’s Masterpiece.
The Scallywag.
At Market Value.
Under Sealed Orders.

By M. ANDERSON.—Othello’s Occupation.
By EDWIN L. ARNOLD.
Phra the Phœnician.
Constable of St. Nicholas.

By ROBERT BARR.
In a Steamer Chair.
From Whose Bourne.
A Woman Intervenes.
Revenge!

By FRANK BARRETT.
The Woman of the Iron Bracelets.
The Harding Scandal.
Under a Strange Mask.
A Missing Witness.
Was She Justified?

By ‘BELLE.’—Vashti and Esther.


By Sir W. BESANT and J. RICE.
Ready-Money Mortiboy.
My Little Girl.
With Harp and Crown.
This Son of Vulcan.
The Golden Butterfly.
The Monks of Thelema.
By Celia’s Arbour.
Chaplain of the Fleet.
The Seamy Side.
The Case of Mr. Lucraft.
In Trafalgar’s Bay.
The Ten Years’ Tenant.

By Sir WALTER BESANT.


All Sorts & Conditions.
The Captains’ Room.
All in a Garden Fair.
Dorothy Forster.
Uncle Jack.
World Went Well Then.
Children of Gibeon.
Herr Paulus.
For Faith and Freedom.
To Call Her Mine.
The Revolt of Man.
The Bell of St. Paul’s.
The Holy Rose.
Armorel of Lyonesse.
S. Katherine’s by Tower.
Verbena, Camellia, &c.
The Ivory Gate.
The Rebel Queen.
Beyond the Dreams of Avarice.
The Master Craftsman.
The City of Refuge.
A Fountain Sealed.
The Changeling.
The Charm.

By AMBROSE BIERCE.—In Midst of Life.


By PAUL BOURGET.—A Living Lie.
By J. D. BRAYSHAW.—Slum Silhouettes.
By ROBERT BUCHANAN.
Shadow of the Sword.
A Child of Nature.
God and the Man.
Martyrdom of Madeline.
Love Me for Ever.
Annan Water.
Foxglove Manor.
The New Abelard.
Matt.
Rachel Dene.
Master of the Mine.
The Heir of Linne.
Woman and the Man.
Red and White Heather.
Lady Kilpatrick.

By ROB. BUCHANAN & HY. MURRAY.— The Charlatan.


By ROBERT W. CHAMBERS.—The King in Yellow.
By J. M. CHAPPLE.—The Minor Chord.
By HALL CAINE.

You might also like