Skip to content

seanpmaxwell/express-jsonwebtoken-demo

Repository files navigation

About

CRUD app to demonstrate authentication using ExpressJS, Jsonwebtoken, and Bcrypt. Also contains examples of how to work with authentication for secure routes in Supertest.

This project was created with express-generator-typescript.

Available Scripts

npm run dev or npm run dev:hot (hot reloading)

Run the server in development mode.

npm test or npm run test:hot (hot reloading)

Run all unit-tests.

npm test -- "name of test file" (i.e. Users).

Run a single unit-test.

npm run lint

Check for linting errors.

npm run build

Build the project for production.

npm start

Run the production build (Must be built first).

Additional Notes

  • If npm run dev gives you issues with bcrypt on MacOS you may need to run: npm rebuild bcrypt --build-from-source.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published