Skip to content

Commit 7ef9244

Browse files
authored
Initial commit
0 parents  commit 7ef9244

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+18738
-0
lines changed

.env.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
DATABASE_URL=app.db
2+
TRUSTED_ORIGINS=https://eu.i.posthog.com,https://another.example.com
3+
VITE_ENABLE_COLOR_MODE=true
4+
VITE_BETTER_AUTH_URL=http://localhost:3000
5+
VITE_TRPC_URL=http://localhost:3000/api/trpc
6+
VITE_POSTHOG_KEY=

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* xlc-dev

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
name: Run linter
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v4
20+
with:
21+
version: 10
22+
23+
- name: Setup Node.js & cache pnpm
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: "22"
27+
cache: "pnpm"
28+
29+
- name: Install dependencies
30+
run: pnpm install --frozen-lockfile
31+
32+
- name: Run lint
33+
run: pnpm run lint

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.output
2+
.vercel
3+
.netlify
4+
.vinxi
5+
.env
6+
.env*.local
7+
.idea
8+
.vscode
9+
.DS_Store
10+
node_modules
11+
Thumbs.db
12+
app.db
13+
app.config.timestamp_*.js
14+
*.log
15+
*.pem
16+
*.key
17+
*.crt
18+
*.sqlite
19+
*.sqlite3

app.config.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { defineConfig } from "@solidjs/start/config";
2+
import tailwindcss from "@tailwindcss/vite";
3+
// @ts-expect-error Errors for no reason cuz node doesn't find it?
4+
import eslint from "vite-plugin-eslint";
5+
6+
export default defineConfig({
7+
middleware: "src/middleware.ts",
8+
vite: {
9+
plugins: [
10+
tailwindcss(),
11+
eslint({
12+
fix: true,
13+
cache: true,
14+
}),
15+
],
16+
},
17+
});

drizzle.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { defineConfig } from "drizzle-kit";
2+
3+
export default defineConfig({
4+
schema: "./src/schema.ts",
5+
dialect: "sqlite",
6+
dbCredentials: {
7+
url: process.env.DATABASE_URL!,
8+
},
9+
out: "./drizzle",
10+
});
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
CREATE TABLE `account` (
2+
`id` text PRIMARY KEY NOT NULL,
3+
`account_id` text NOT NULL,
4+
`provider_id` text NOT NULL,
5+
`user_id` text NOT NULL,
6+
`access_token` text,
7+
`refresh_token` text,
8+
`id_token` text,
9+
`access_token_expires_at` integer,
10+
`refresh_token_expires_at` integer,
11+
`scope` text,
12+
`password` text,
13+
`created_at` integer NOT NULL,
14+
`updated_at` integer NOT NULL,
15+
FOREIGN KEY (`user_id`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade
16+
);
17+
--> statement-breakpoint
18+
CREATE TABLE `session` (
19+
`id` text PRIMARY KEY NOT NULL,
20+
`expires_at` integer NOT NULL,
21+
`token` text NOT NULL,
22+
`created_at` integer NOT NULL,
23+
`updated_at` integer NOT NULL,
24+
`ip_address` text,
25+
`user_agent` text,
26+
`user_id` text NOT NULL,
27+
FOREIGN KEY (`user_id`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade
28+
);
29+
--> statement-breakpoint
30+
CREATE UNIQUE INDEX `session_token_unique` ON `session` (`token`);--> statement-breakpoint
31+
CREATE TABLE `user` (
32+
`id` text PRIMARY KEY NOT NULL,
33+
`name` text NOT NULL,
34+
`email` text NOT NULL,
35+
`email_verified` integer NOT NULL,
36+
`image` text,
37+
`created_at` integer NOT NULL,
38+
`updated_at` integer NOT NULL
39+
);
40+
--> statement-breakpoint
41+
CREATE UNIQUE INDEX `user_email_unique` ON `user` (`email`);--> statement-breakpoint
42+
CREATE TABLE `verification` (
43+
`id` text PRIMARY KEY NOT NULL,
44+
`identifier` text NOT NULL,
45+
`value` text NOT NULL,
46+
`expires_at` integer NOT NULL,
47+
`created_at` integer,
48+
`updated_at` integer
49+
);

0 commit comments

Comments
 (0)