This is a demo app for connecting NodeJS/Express to a MySQL Database, and uses Bcrypt to hash user passwords BEFORE storing them in the database
- npm i
- Create a new database schema, in this example it's named
bcryptdb
- Set up your
.env
according to your local settings, see:.env.example
- Run the command
npm run server
See the files /routes/authRoutes.js
and /controllers/authController.js
for detailed step by step about how bcrypt works