This is a Node.js application that demonstrates a basic sign-in and sign-up functionality using Sequelize as the ORM and PostgreSQL as the database.
- User registration (sign-up) with validation
- User authentication (sign-in) with password hashing
- Secure session management using cookies
- Sequelize ORM for interacting with the PostgreSQL database
- 2FA authentication API
- Password Reset API
- NodeMailer
Before running the application, ensure that the following dependencies are installed:
- Node.js
- PostgreSQL
-
Clone the repository:
git clone git@github.com:ht-eml/test-node-js-app.git
-
Change the directory to the
test-node-js-appand install dependencies.cd test-node-js-app npm i -
Start Dev Server.
npm run start:dev