About the Book
? What is Awesome Coding about?
I am a self-taught developer, so I wanted to make sure to create an engaging book that is easily accessible by beginners. If you want to learn coding from scratch with highly practical, applicable, and useful examples, this is the right book for you.
? Who is Awesome Coding for?
? What is included in the Book?
? File System Operations
Create files and folders using Node.js. Learn working synchronously vs asynchronously.
? Image Manipulation
Programmatically resize, color-correct, or modify images.
? Web Scraping
Automate your interactions with the web. Programmatically scrape website data, take screenshots.
? Command-Line Applications
Build programs that can be controlled from the command-line (terminal).
? Natural Language Processing
Perform NLP operations such as language detection and sentiment analysis.
? Data Analysis
Practice analyzing and working large sets of data.
? Web APIs
Use Web APIs to get news headlines, stock market, and cryptocurrency data.
- What Will You Learn In This Book
- Code Examples
- 1 Preface
2 Setting Up Your Development Environment
- Development Environment Setup
3 Basic Data Types and Variables
- Basic Data Types
- Choosing Variable Names
- Declaring Variables
- Thinking About Functions
- Defining Functions
- A Real World Function Example
- Callback Functions and Anonymous Functions
5 Comparison Operators and Conditionals
- Booleans & Comparison Operators
- Comparing Fractional Numbers
- Logical Operators
- Conditional Statements
- Truthy and Falsy Values
- Logical Operators Revisited
6 Project: Creating an Email Template
- Creating an Email Template
- Template Literals
- this Keyword
- Passed by Value vs. Passed by Reference
- Factory Functions, Constructor Functions, and Classes
- Example: Building a Password Validator
- Example: Writing a Countdown Function Using a While Loop
- for Loop
- Example: Writing a Countdown Function Using a for Loop
- Looping Over Collections
- Map and Filter Methods
10 Project: Password Validator
- Minimum 8, Maximum 12 Characters
- No Space at the Start or at the End
- Includes at Least Two Special Characters
- No Repeating Characters
- Includes at Least Two Numbers
- Refactoring Code
11 Programming Libraries
- Loading Libraries
- Library Examples
12 Project: Data Analysis
- Using Faker
- How Many Students Are There?
- Which Email Providers Exist?
- How Many Users There Are for Each Email Provider?
- Which User Has the Longest Email Address?
- Which User Has the Shortest Email Address?
- Which Country Has the Most Users?
- 2 Setting Up Your Development Environment
II Getting Started with Node.js
13 Introduction to Node.js
- Installing Node.js
- Using the Terminal
- Using a Code Editor
- Our First Node.js Program
- Using Modules in Node.js
15 Third-Party Modules and Libraries
- Using package.json
16 Project: Writing a Command-Line Tool
- Building a Number Guessing Game
- Getting the Command Line Arguments
- Capturing the User Input
- Creating the Game Loop
- 13 Introduction to Node.js
III Interacting with the File System in Node.js
17 File System in Node.js Part 1
- Working with Folders
- Performing Folder Operations
18 File System in Node.js Part 2
- Reading and Writing Files
- Reading Files with Error Handling
19 File System in Node.js Part 3
- Working Asynchronously
- Creating a folder asynchronously
- Reading and Writing files in Node.js
- Choosing Between Synchronous and Asynchronous Functions
- 17 File System in Node.js Part 1
IV Image Processing in Node.js
20 Image Processing in Node.js using Jimp
- Callback Hell
- Callbacks vs. Promises
- Using Jimp with Promises
- 20 Image Processing in Node.js using Jimp
V Web Scraping
21 Automate the Web Using Puppeteer
- Getting Started with Puppeteer
22 Programming Inside the Browser
- HTML (Hypertext Markup Language)
- CSS (Cascading Stylesheets)
- Classes and IDs
23 Project: Get Random Wikipedia Articles
- Things to Keep in Mind with Headless Browsers
- 21 Automate the Web Using Puppeteer
24 Working with APIs
- Communicating with Web APIs
- Using Web APIs
- About Web Browser APIs and Web Service APIs
25 Project: Stock and Crypto Market API
- Finding the Stock Symbol for a Company
- Getting the Price Data for a Stock
- Getting Company Financials
- Getting the Price in Bitcoin
26 Project: News API
- Using NewsAPI with a Client Library
- Adding Day.js
- Performing Sentiment Analysis
- 27 Closing Words
- 24 Working with APIs
The Leanpub 60-day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
80% Royalties. Earn $16 on a $20 book.
We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $12 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.