Jennifer Bland header image
≡ Menu

Utilizing the Coinbase API in a Node.js Application

In the previous article, I showed you how to use the Coinbase API to authenticate your application so that anybody can use it. In this article, I will show you how to build on this by

  • getting user details
  • getting a list of all user accounts
  • get a list of all transactions (buy, sell, etc) that the user has completed for each crypto coins they own.

Getting User Details

Let's look at the Coinbase API documentation on about showing the current user details. You can view documentation here.

The documentation says we need to make a GET call to the /v2/user endpoint to get current user's public information. To get user's email or private information, use permissions wallet:user:email and wallet:user:read.

[continue reading…]

Accessing the Coinbase API using OAuth2

Coinbase is a cryptocurrency exchange where you can buy popular coins like Bitcoin and Ethereum. In these series of articles I will show you how to utilize the Coinbase API to see a list of cryptos that you hold as well as all the transactions for a specific crypto coin. We will be creating a Node.js application to access the Coinbase API.

Coinbase API Options

You can access the Coinbase API here. Coinbase has two types of APIs

  • API Key
  • OAuth2

The API Key is used to access your account on Coinbase. The OAuth2 API is used to authenticate to coinbase for any user and then have access to all the API functionality.

For this demo, I want to make this available to everyone to use not just myself so we are going to use the OAuth2 API.

[continue reading…]

Got App? Got Data? Here’s how to store data to MongoDB in a Node / Express App

Every application has data. Let me show you how to store your data in a MongoDB database from an app written with Node.js and Express.js.

What is CRUD

CRUD is an acronym for Create, Read, Update and Delete. CRUD is the operations that you use to:

  • create data in a database
  • read the data in a database
  • update the data in a database
  • delete the data in a database

What we will be creating

We will create a simple application where you can store a user's first and last name in a MongoDB database. Here is what it looks like:

[continue reading…]

How to Add Authentication to a Vue App Using AWS Amplify

AWS Amplify is a tool for adding authentication for front-end applications. See how easy it is to add to your Vue application.

What we will be creating

We are going to create a very simple Vue application using the Vue CLI. We will modify the default scaffolded application so that it provides a form to register as a new user, a login page and a dashboard page only shown to people that are logged in.

User's will be able to register using email and password. Once they have registered and login they will be presented with the dashboard page.

[continue reading…]

How to Add Authentication to a Vue App Using Auth0

Auth0 is a flexible, drop-in solution to add authentication and authorization services to your applications. See how easy it is to add to your Vue application so you can register and login users with their email address and a password.

What we will be creating

We are going to create a very simple Vue application using the Vue CLI. We will modify the default scaffolded application so that we can use Auth0 to either register a new user or login an existing user. Once a user is logged in then they will have access to view the About page.

User's will be able to register with the application using the email and password authentication system in Auth0.

[continue reading…]