Skip to content

updated readme #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
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
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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: 18

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm run test -- --coverage
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -22,3 +22,5 @@ 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!

Denzell's version of Boot.dev's Notely app.
5,910 changes: 4,774 additions & 1,136 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -9,16 +9,19 @@
"db:studio": "drizzle-kit studio",
"build": "npx tsc",
"start": "node dist/main.js",
"dev": "npx tsc && node dist/main.js"
"dev": "npx tsc && node dist/main.js",
"test": "vitest --run"
},
"devDependencies": {
"@types/cors": "^2.8.17",
"@types/express": "^5.0.0",
"@types/node": "^22.9.0",
"@vitest/coverage-v8": "^3.1.3",
"drizzle-kit": "^0.28.1",
"globals": "^15.12.0",
"tsx": "^4.19.2",
"typescript": "^5.6.3"
"typescript": "^5.6.3",
"vitest": "^3.1.3"
},
"dependencies": {
"@libsql/client": "^0.14.0",
16 changes: 16 additions & 0 deletions src/tests/auth.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { describe, expect, test } from "vitest";

const person = {
isActive: true,
age: 32,
};

describe("person", () => {
test("person is defined", () => {
expect(person).toBeDefined();
});

test("is active", () => {
expect(person.isActive).toBeTruthy();
});
});