Simple boilerplate for backend projects in NodeJS and Express.. (Uses JWT or jsonwebtoken)
- For projects which use react =>
- Create a form in your application which puts POST (using axios etc) request to '/login'
- Submit username in request body
- Set auth token in frontend
- Vanilla JS => use axios POST request to '/login'