This is a hands-on playground for understanding how to use JSON Web Tokens.
This uses pnpm as package manager. To install the project, use
npm install -g pnpm
pnpm iWe 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 devto start the server. In another terminal,
npm testto 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.