Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 724 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 724 Bytes

What is this?

This is a hands-on playground for understanding how to use JSON Web Tokens.

Installation

This uses pnpm as package manager. To install the project, use

npm install -g pnpm
pnpm i

Usage

We use automated jest tests to make sure everything works the way we think it does. To run the tests, we need to start the server and then run the tests.

In one terminal, run

npm run dev

to start the server. In another terminal,

npm test

to run the tests in watch mode.

While the two commands are running, you can work on index.js and index.jest.js. The server will automatically restart and the tests will run again.