This repository contains an application for a complete Node.js Login System. It provides a /sign-up, a /login and and /secret-route route that is only accessable, if the user is successfully logged in.
- Clone the repository to your local machine
- Rename the file
.env.templateto.envand enter your database credentials - Setup an local MySQL database and import the default schema from db/default_schema.sql
- Install all dependencies with
npm i - Start the development server with
npm run dev
Read the full tutorial on my blog: https://webdeasy.de/en/node-js-login-with-express-jwt-mysql