Beer Locker

啤酒柜教程的源代码。「Source code for Beer Locker tutorials」

  • 所有者: scottksmith95/beerlocker
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者scottksmith95/beerlocker
主編程語言JavaScript
編程語言JavaScript (語言數: 2)
平台
許可證
所有者活动
創建於2014-05-27 19:37:00
推送於2016-05-21 21:01:12
最后一次提交2016-05-21 14:01:11
發布數0
用户参与
星數427
關注者數35
派生數263
提交數23
已啟用問題?
問題數6
打開的問題數4
拉請求數2
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?