Download and use httpie for api testing.
mkdir expressjs-api
cd expressjs-api/
npx express-generator
npm i
rm -rf public
rm -rf views
npm i jsonwebtoken @types/jsonwebtoken
npm i dotenv @types/dotenv
npm i bcrypt @types/bcrypt
npm i mongodb @types/mongodb
The code in this repository is based on the following videos.