Skip to content

Commit 7625732

Browse files
committed
db migrations, schema and working api
1 parent bd6c3f6 commit 7625732

23 files changed

+633
-1165
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules/
2+
coverage/
23
dist/
34
.env
45
.vscode

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM --platform=linux/amd64 node:18-slim
2+
3+
WORKDIR /usr/src/app
4+
5+
ADD . .
6+
7+
RUN npm ci
8+
9+
RUN npm run build
10+
11+
CMD ["node", "dist/main.js"]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ Run the server:
1616

1717
```bash
1818
npm install
19-
npx tsc && npm start
19+
npx run dev
2020
```
2121

22-
*This starts the server in non-database mode.* It will serve a simple webpage at `http://localhost:8080`.
22+
_This starts the server in non-database mode._ It will serve a simple webpage at `http://localhost:8080`.
2323

24-
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!
24+
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!

drizzle.config.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { defineConfig } from "drizzle-kit";
33
import { config } from "./src/config";
44

55
export default defineConfig({
6-
out: "./src/db/migrations",
7-
schema: "./src/db/schema.ts",
8-
dialect: "turso",
9-
dbCredentials: {
10-
url: config.db.url || "",
11-
},
6+
out: "./src/db/migrations",
7+
schema: "./src/db/schema.ts",
8+
dialect: "turso",
9+
dbCredentials: {
10+
url: config.db.url || "",
11+
},
1212
});

0 commit comments

Comments
 (0)