Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
9f99099
Update README with my version
HamzehJarrar Mar 20, 2026
bff9e25
Update README
HamzehJarrar Mar 20, 2026
cca8bcb
Update README
HamzehJarrar Mar 20, 2026
cdcf0d4
Add CI workflow
HamzehJarrar Mar 20, 2026
654c03c
print node version
HamzehJarrar Mar 20, 2026
691f53c
Trigger CI fix
HamzehJarrar Mar 20, 2026
81b41b6
break test
HamzehJarrar Mar 23, 2026
ed662ae
fix tests
HamzehJarrar Mar 23, 2026
0850843
add coverage
HamzehJarrar Mar 23, 2026
0fcf01a
Update README.md
HamzehJarrar Mar 23, 2026
7fad3b2
add CI badge
HamzehJarrar Mar 23, 2026
e7194dd
format code with prettier
HamzehJarrar Mar 23, 2026
1454f91
add style CI job
HamzehJarrar Mar 23, 2026
edf422d
break lint CI
HamzehJarrar Mar 23, 2026
e6a2e2f
fix lint
HamzehJarrar Mar 23, 2026
61ad8e1
fix formatting
HamzehJarrar Mar 23, 2026
864bea2
fix formattingg
HamzehJarrar Mar 23, 2026
daae358
fixing auth test
HamzehJarrar Mar 23, 2026
71bdeb3
fix lint scope (exclude dist)
HamzehJarrar Mar 23, 2026
b18deea
fixing ci
HamzehJarrar Mar 23, 2026
d561479
add lint step to CI style job
HamzehJarrar Mar 23, 2026
ff596a4
add lint step to CI style job
HamzehJarrar Mar 23, 2026
0b155d4
fixed
HamzehJarrar Mar 23, 2026
e4376ed
fixing package
HamzehJarrar Mar 23, 2026
a23d8fc
fix
HamzehJarrar Mar 23, 2026
3316052
Merge branch 'main' into addtests
HamzehJarrar Mar 23, 2026
d45cd95
Merge pull request #1 from HamzehJarrar/addtests
HamzehJarrar Mar 23, 2026
61d665a
fix ReadMe
HamzehJarrar Mar 23, 2026
c4e6c72
fix
HamzehJarrar Mar 23, 2026
7ffc729
fix
HamzehJarrar Mar 23, 2026
eda587d
clean up whitespace in auth.test.ts
HamzehJarrar Mar 23, 2026
46616cf
fix formatting (README)
HamzehJarrar Mar 23, 2026
de9fadd
Update README.md
HamzehJarrar Mar 23, 2026
f7de9a0
fix
HamzehJarrar Mar 23, 2026
ecbcd61
fix: format README.md with prettier
HamzehJarrar Mar 23, 2026
537515b
fix
HamzehJarrar Mar 23, 2026
e54048b
update README
HamzehJarrar Mar 23, 2026
18f095f
Update README.md
HamzehJarrar Mar 23, 2026
48518ce
fix: format readme using prettier
HamzehJarrar Mar 23, 2026
a1803d8
fix: resolve all formatting issues and update ignore rules
HamzehJarrar Mar 23, 2026
bec4993
chore: fix formatting for CI
HamzehJarrar Mar 23, 2026
a09226d
fix
HamzehJarrar Mar 23, 2026
12b130a
Merge branch 'final-fix-branch' into addtests
HamzehJarrar Mar 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: ci

on:
pull_request:
branches: [main]

jobs:
tests:
name: Tests
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install dependencies
run: npm ci

- name: Run unit tests
run: npm run test -- --coverage

style:
name: Style
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install dependencies
run: npm ci

- name: Check formatting
run: npm run format:check

- name: Check linting
run: npm run lint
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules/
coverage/
dist/
.env
.vscode
node_modules/
coverage/
dist/
.env
.vscode
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
22 changes: 11 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM --platform=linux/amd64 node:22-slim

WORKDIR /usr/src/app

ADD . .

RUN npm ci

RUN npm run build

CMD ["node", "dist/main.js"]
FROM --platform=linux/amd64 node:22-slim
WORKDIR /usr/src/app
ADD . .
RUN npm ci
RUN npm run build
CMD ["node", "dist/main.js"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ npm run dev
_This starts the server in non-database mode._ It will serve a simple webpage at `http://localhost:8080`.

You do _not_ need to set up a database or any interactivity on the webpage yet. Instructions for that will come later in the course!
Hamzeh's version of Boot.dev's Notely app.
14 changes: 14 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import { defineConfig } from "eslint/config";

export default defineConfig([
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
plugins: { js },
extends: ["js/recommended"],
languageOptions: { globals: globals.browser },
},
tseslint.configs.recommended,
]);
Loading