• Stars
    star
    426
  • Rank 101,361 (Top 3 %)
  • Language
    JavaScript
  • Created over 10 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Source code for Beer Locker tutorials

Source code for Beer Locker tutorials

Language Translations:

####beerlocker-1

With an ever growing collection of beer, I am in dire need of a way to store and track my beer. What better way to do this than to create an application where I can add, remove, update, and view my beer collection. Like any motivated developer, I want my friends to be able to create their own lockers and control who has access to mine.

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.

When we are done, we should have an API that allows users to authenticate, perform CRUD operations, authorize other applications via OAuth to access the API, have a solid understanding of best practices and tooling, and most important of all, a place to store our beer!

Beer Locker: Building a RESTful API With Node

####beerlocker-2

In our previous article we left off with a basic Node applicaton in place capable of accepting HTTP requests and responding back with some static JSON.

In this 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 - CRUD

####beerlocker-3.1

Starting point for the third article on implementing Passport. This is to clean up the code a bit from our previous tutorials.

####beerlocker-3.2

In our previous article we ended wtih a fairly functional API capable of adding, removing, updating, and viewing beer.

In this part 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 - Passport

###beerlocker-4

In our previous article we ended wtih a functional API capable of creating user accounts, locking down API endpoints, and only allowing access to a user’s own beer locker.

In this part 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 - OAuth2 Server

###beerlocker-5

In our previous article we ended wtih a functional API capable of creating user accounts, locking down API endpoints, only allowing access to a user's own beer locker, and an OAuth2 server.

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 - Digest

####beerlocker-6.1

Starting point for the sixth article on using username and password for authentication. This is to clean up the code a bit from our previous tutorial.

####beerlocker-6.2

In our previous article we explored implementing Digest authentication in place of Basic. This article will now delve into implementing username and password authentication using the passport-local module.

Beer Locker: Building a RESTful API With Node - Username & Password

More Repositories

1

LINQKit

LINQKit is a free set of extensions for LINQ to SQL and Entity Framework power users.
C#
1,600
star
2

coderbits.widget

Coderbits profile widget
JavaScript
25
star
3

CSharp.Readability

Readability API binding and OAuth connect support for the readability.com API
C#
19
star
4

twitatron

Source code for the Twitatron tutorial series
JavaScript
11
star
5

CSharp.Bitbucket

Bitbucket API access and OAuth connect support for the bitbucket.com API
C#
11
star
6

CoderBattle

Do battle with your fellow coders!
CSS
10
star
7

cardi

Parse web page meta data into an object containing title, description, keywords, and images.
JavaScript
5
star
8

CSharp.GitHub

GitHub API access and OAuth connect support for the github.com API
C#
5
star
9

SignalRTutorial

Source code for SignalR: Awesome Real-Time with .NET
JavaScript
4
star
10

CSharp.Coderbits

C# client for the coderbits profile API.
C#
3
star
11

CSharp.oDesk

oDesk API access and OAuth connect support for the odesk.com API
C#
3
star
12

CSharp.Meetup

Meetup API access and OAuth connect support for the meetup.com API
C#
3
star
13

coderbits.widget.octopress

Octopress aside for showing off your coderbits stats
3
star
14

favatron

Source code to the Favatron service previously on http://favatron.com
JavaScript
3
star
15

CSharp.Geeklist

Geeklist API binding and OAuth connect support for the geekli.st API
C#
3
star
16

url-expand

Simple and efficient URL expander.
JavaScript
3
star
17

texter

Send SMS messages using Twilio from Node
JavaScript
2
star
18

coderbits.badges.octopress

Octopress aside for showing off your coderbits badges
JavaScript
2
star
19

ScriptCs.ScriptPackBoilerplate

A template for building ScriptCS script packs.
C#
2
star
20

SignalRTutorial-Part2

Source code for SignalR: Awesome Real-Time with .NET - Part 2
JavaScript
1
star
21

CSharp.Elance

Elance API access and OAuth connect support for the elance.com API
C#
1
star
22

ScriptCs.Coderbits

ScriptCS script pack for querying the coderbits profile API
C#
1
star