Skip to content

Commit 5ee962a

Browse files
Update README.md and add Node CI workflow
1 parent 73dcc2f commit 5ee962a

3 files changed

Lines changed: 43 additions & 2 deletions

File tree

.github/workflows/node-ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Node CI
2+
3+
on:
4+
push:
5+
branches: ["main", "master"]
6+
pull_request:
7+
branches: ["main", "master"]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out source code
14+
uses: actions/checkout@v4
15+
16+
- name: Use Node.js 18
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 18
20+
cache: npm
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Run tests
26+
run: npm test

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Email Verification + 2FA Auth Demo (Vanilla JS + Node/Express)
22

3+
<div align="right">
4+
5+
![Live](https://img.shields.io/website?url=https://twofa-auth-vwrs.onrender.com/)
6+
&nbsp;
7+
![CI](https://github.com/SagarBiswas-MultiHAT/2FA-Auth/actions/workflows/node-ci.yml/badge.svg)
8+
&nbsp;
9+
![Node](https://img.shields.io/badge/node-18%2B-brightgreen)
10+
&nbsp;
11+
![Last commit](https://img.shields.io/github/last-commit/SagarBiswas-MultiHAT/2FA-Auth)
12+
&nbsp;
13+
![Issues](https://img.shields.io/github/issues/SagarBiswas-MultiHAT/2FA-Auth)
14+
15+
</div>
16+
317
A beginner-friendly authentication project that **feels like a real app**, but is still small enough to understand end-to-end.
418

519
This repo shows the complete auth story:

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
"type": "commonjs",
66
"scripts": {
77
"start": "node server.js",
8-
"dev": "node server.js"
8+
"dev": "node server.js",
9+
"test": "node --check server.js"
910
},
1011
"dependencies": {
1112
"dotenv": "^16.4.5",
1213
"express": "^4.21.2",
1314
"nodemailer": "^7.0.12",
1415
"qrcode": "^1.5.4"
1516
}
16-
}
17+
}

0 commit comments

Comments
 (0)