Simple application to implement 2FA with NodeJS
This code is a fork from a repo by Kanayama, thanks man for your great lessons! 👍
- Node.js v14 (
.nvmrc
available in the source) - PostgreSQL databse (there's docker-compose in the source code)
Rename the file .env.example
to .env
Command | Description |
---|---|
npm install |
It installs the dependations inside package.json, and creates the .node_modules folder |
docker-compose up |
To create your local PostgreSQL database with docker compose |
npm run sequelize:migrate |
To create the tables |
npm run sequelize:seed |
To create the data for the tables |
npm run dev |
To run the project using nodemon |
You can get the postman collection for this project here