SitePoint
Blog
Forum
Library
Login
Join Premium
Toggle sidebar
9 Practical Node.js Projects
Toggle community discussions
Close
Content
Bookmarks
Preface
9 Practical Node.js Projects
Notice of Rights
Notice of Liability
Trademark Notice
About SitePoint
Who Should Read This Book?
Conventions Used
1
Build a Simple Beginner App with Node, Bootstrap & MongoDB
What We’ll Be Building
Basic Setup
Initialize the Application
Basic Templating with Pug
Dealing with Forms in Express
Interact with a Database
Add HTTP Authentication
Serve Static Assets in Express
Conclusion
How to Build a File Upload Form with Express and Dropzone.js
Introducing DropzoneJS
Installation
First Steps
Basic Usage
Basic Configuration Options
Sending Additional Headers
Handling Fallbacks
Handling Errors
Overriding Messages and Translation
Events
A More Complex Validation Example: Image Dimensions
A Complete Example
Theming
A Simple Server-Side Upload Handler with Node.js and Express
Handling Upload Success
Handling Upload Errors
Summary
How to Build and Structure a Node.js MVC Application
What is MVC?
Laying out the Foundation
Storing Our Settings
Defining the Routes
Building the Models
Building the controllers
Building the Views
Serving Static Files
Conclusion
User Authentication with the MEAN Stack
The MEAN Stack Authentication Flow
The Example Application
Creating the MongoDB Data Schema with Mongoose
Set Up Passport to Handle the Express Authentication
Configure API Endpoints
Create Angular Authentication Service
Apply Authentication to Angular App
Build a JavaScript Command Line Interface (CLI) with Node.js
Why Build a Command-line Tool with Node.js?
What We’re Going to Build: ginit
The Application Dependencies
Getting Started
Adding Some Helper Methods
Initializing the Node CLI
Prompting the User for Input
Dealing With GitHub Authentication
Communicating with the GitHub API
Creating a Repository
Creating a .gitignore File
Interacting with Git from Within the App
Putting It All Together
Making the ginit Command Available Globally
Taking it Further
Building a Real-time Chat App with Sails.js
Prerequisites
Project Plan
Installing Sails.js
Installing Front-end Dependencies
Creating Views
Routing
Generating a User API
ChatMessage API
Basic Authentication
Final Touches
Summary
Passport Authentication for Node.js Applications
Express Web App
Setting up Passport
Implementing Facebook Authentication
Implementing GitHub Authentication
Conclusion
Local Authentication Using Passport in Node.js
Prerequisites
Creating the Project
HTML
Setting up Express
Setting up Passport
Creating a MongoDB Data Store
Connection Mongo to Node with Mongoose
Implementing Local Authentication
Conclusion
An Introduction to NodeBots
What is a Microcontroller?
What are NodeBots?
Where To Start
Resources for Learning NodeBots
Conclusion
Open text modal
Community Questions
Close