Scott Smith

Blog Tutorials Projects Speaking RSS

Twitatron: Building a Production Web App With Node

In this multi part series you will learn how to create a production ready Node web application with authorization, user accounts, data storage, background workers, security, email, APIs, RSS, and third party service integrations.

Protect Your Node App’s Noggin With Helmet

Learn how to protect your Express Node application from cross-site scripting, script injection, clickjacking, insecure requests, and more by using a set of Express middleware provided by Helmet.

Beer Locker: Building a RESTful API With Node - Digest

Many readers have asked questions about how to use different authentication strategies so I am going to continue this series and delve into many of those strategies. This article will explore the use of Digest authentication instead of Basic.

Beer Locker: Building a RESTful API With Node - OAuth2 Server

In this beer locker installment we will dive into creating an OAuth2 server and allowing access to API endpoints for the authorized user or authorized applications. We will do this by integrating OAuth2orize into our application.

Beer Locker: Building a RESTful API With Node - Passport

In this part of the beer locker series, we will dive into creating user accounts and authentication using Passport. By the end of this article you will have learned how to add user accounts, implement authentication, and control access to beer lockers.

Beer Locker: Building a RESTful API With Node - CRUD

In this beer locker part, we will dive a bit deeper and learn how to implement CRUD operations on our beer locker. By the end of this article you will have learned how to connect to a MongoDB, used Mongoose for object modeling, and have implemented GET, PUT, POST, and DELETE endpoints.

Beer Locker: Building a RESTful API With Node

In this multipart series we’ll be creating a RESTful API using Node, Express, Mongoose to interact with MongoDB, Passport for authentication, OAuth2orize for OAuth support, and explore best practices and tools.

The Birth of Bit: Making Ideas Happen

We all have ideas. In the space we work it is nearly impossible not to. We are developers and designers; the makers of the digital world. They key is having the ability to take the leap and transform an idea into a reality. Why do so many people not follow through with their ideas? Read on to learn practical tips on how to take an idea and make it real.

Deeper Dive Into ScriptCS

In this article, we will be exploring the newish REPL interactive mode, script packs, and many other cool features of ScriptCS.

Using @ and _ With HTML Helpers in Razor Views

Here is a tip for you .NET developers.

When you are using HTML helpers there are times when you need to add extra attributes to the HTML element being produced by the helper. Two attributes that are commonly added are the class and data- attribute. HTML helpers support the ability to pass in an anonymous object for setting these attributes. The helper will take each item out of the anonymous object and add them to the html element as attributes.

SignalR: Awesome Real-Time With .NET - Part 2

Welcome to part two of the series SignalR: Awesome Real-Time with .NET.

Part 1 - SignalR: Awesome Real-Time with .NET

Part 2 - SignalR: Awesome Real-Time with .NET - Part 2

For this post, we will start where we left off from part one. If you don’t want to follow part one and create the solution, project, code, etc, you can get the source on GitHub.

Step 1 - Specifying the route for the Hub

Because Hubs are at a higher level than PersistentConnections, there is no need to manually set the route for the Hub. Some of the magic I talked about before does this for us automatically by creating the route /SignalR. To change the route for the Hub you need to register the route in the Global.asax file and update any client side references to the Hub.

Chocolatey NuGet

Chocolatey NuGet?!

From the site:

Let’s get Chocolatey! Chocolatey NuGet is a Machine Package Manager, somewhat like apt-get, but built with Windows in mind. Easy Install! To install chocolatey now, open a command prompt and paste some text

To install simply paste the following into a command prompt:

@powershell -NoProfile -ExecutionPolicy unrestricted -Command “iex ((new-object net.webclient).DownloadString(‘http://bit.ly/psChocInstall’))” && SET PATH=%PATH%;%systemdrive%\chocolatey\bin

Don’t feel comfortable running commands you found on some random blog? I don’t blame you. Head over to their site to learn more about Chocolatey NuGet.