Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
b227ea3
undo Lane's giant mistake
ahmedk1911 Dec 26, 2025
dc54619
some changes
ahmedk1911 Dec 26, 2025
4e43b23
Merge pull request #1 from ahmedk20/addtests
ahmedk20 Dec 26, 2025
5246cc4
some changes
ahmedk1911 Dec 26, 2025
44ac625
add workflow
ahmedk1911 Dec 26, 2025
65478b3
add workflow
ahmedk1911 Dec 26, 2025
e7ffdc4
Merge pull request #2 from ahmedk20/addtests
ahmedk20 Dec 26, 2025
b879d97
run: node --version
ahmedk1911 Dec 26, 2025
c4735a9
Merge branch 'main' into addtests
ahmedk20 Dec 26, 2025
37d4c83
ss
ahmedk1911 Dec 26, 2025
c98305f
Merge pull request #3 from ahmedk20/addtests
ahmedk20 Dec 26, 2025
c471d41
ss
ahmedk1911 Dec 26, 2025
0ec0f4e
sss
ahmedk1911 Dec 27, 2025
f50c5c1
ddd
ahmedk1911 Dec 27, 2025
6cead3a
coverage
ahmedk1911 Dec 27, 2025
51c3025
Merge branch 'main' into addtests
ahmedk20 Dec 27, 2025
558da4e
dddd
ahmedk1911 Dec 27, 2025
ae87399
dddd
ahmedk1911 Dec 27, 2025
6dac879
add badge
ahmedk1911 Dec 27, 2025
0584108
Merge branch 'main' into addtests
ahmedk20 Dec 27, 2025
6805222
Merge pull request #4 from ahmedk20/addtests
ahmedk20 Dec 27, 2025
b710a82
add style job
ahmedk1911 Dec 27, 2025
a87f9f6
testing
ahmedk1911 Dec 27, 2025
f82e5bd
Merge branch 'main' into testing
ahmedk20 Dec 27, 2025
ca411a2
add linting
ahmedk1911 Dec 27, 2025
2e0c966
add linting
ahmedk1911 Dec 27, 2025
a4f3e40
sssse
ahmedk1911 Dec 27, 2025
81947e8
ssss
ahmedk1911 Dec 27, 2025
bb02769
linting
ahmedk1911 Dec 27, 2025
6e2418a
Merge branch 'main' into testing
ahmedk20 Dec 27, 2025
6ac1963
Merge pull request #7 from ahmedk20/testing
ahmedk20 Dec 27, 2025
37532a5
security
ahmedk1911 Dec 27, 2025
d396bf4
Merge pull request #8 from ahmedk20/testing
ahmedk20 Dec 27, 2025
62bda20
test sec
ahmedk1911 Dec 27, 2025
3d32e5b
Merge pull request #9 from ahmedk20/testing
ahmedk20 Dec 27, 2025
dc89e19
edit on ci file
ahmedk1911 Dec 27, 2025
86ec7a0
some edit
ahmedk1911 Dec 27, 2025
4bf9b48
Merge pull request #10 from ahmedk20/testing
ahmedk20 Dec 27, 2025
d292b74
fail action
ahmedk1911 Dec 27, 2025
c8c6d70
fix sec error
ahmedk1911 Dec 27, 2025
d37688b
dd
ahmedk1911 Dec 27, 2025
7aeb62a
Merge branch 'main' into testing
ahmedk20 Dec 27, 2025
4e736be
rrrrr
ahmedk1911 Dec 27, 2025
68b9271
shit
ahmedk1911 Dec 27, 2025
b8ce7bc
rrrrr
ahmedk1911 Dec 27, 2025
ef80717
sss
ahmedk1911 Dec 27, 2025
4a64486
rrrrr
ahmedk1911 Dec 27, 2025
0cdfa40
rrrrr
ahmedk1911 Dec 27, 2025
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
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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: 21

- name: Install dependencies
run: npm ci

- name: Run Tests
run: npm run test --coverage

styleAndSecurity:
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: 21

- name: Install dependencies
run: npm ci

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

- name: Check linting
run: npm run lint -- --max-warnings=0



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
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:18-slim

WORKDIR /usr/src/app

ADD . .

RUN npm ci

RUN npm run build

CMD ["node", "dist/main.js"]
FROM --platform=linux/amd64 node:18-slim
WORKDIR /usr/src/app
ADD . .
RUN npm ci
RUN npm run build
CMD ["node", "dist/main.js"]
53 changes: 29 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
# learn-cicd-typescript-starter (Notely)

This repo contains the typescript starter code for the "Notely" application for the "Learn CICD" course on [Boot.dev](https://boot.dev).

## Local Development

Make sure you're on Node version 18+.

Create a `.env` file in the root of the project with the following contents:

```bash
PORT="8080"
```

Run the server:

```bash
npm install
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!
# learn-cicd-typescript-starter (Notely)

![test](https://github.com/ahmedk20/learn-cicd-typescript-starter/blob/main/.github/workflows/ci.yml/badge.svg)

This repo contains the typescript starter code for the "Notely" application for the "Learn CICD" course on [Boot.dev](https://boot.dev).

## Local Development

Make sure you're on Node version 18+.

Create a `.env` file in the root of the project with the following contents:

```bash
PORT="8080"
```

Run the server:

```bash
npm install
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!

Ahmed's version of Boot.dev's Notely app.

24 changes: 12 additions & 12 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { defineConfig } from "drizzle-kit";

import { config } from "./src/config";

export default defineConfig({
out: "./src/db/migrations",
schema: "./src/db/schema.ts",
dialect: "turso",
dbCredentials: {
url: config.db.url || "",
},
});
import { defineConfig } from "drizzle-kit";
import { config } from "./src/config";
export default defineConfig({
out: "./src/db/migrations",
schema: "./src/db/schema.ts",
dialect: "turso",
dbCredentials: {
url: config.db.url || "",
},
});
9 changes: 9 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
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.node } },
tseslint.configs.recommended,
]);
Loading