Skip to content

Commit 3a871dc

Browse files
committed
Initial commit: OpenBoot website
- SvelteKit 5 + Cloudflare Workers - GitHub OAuth authentication - Custom config dashboard - Install script generation - Updated all references to openbootdotdev org
0 parents  commit 3a871dc

36 files changed

+6499
-0
lines changed

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
node_modules
2+
3+
# Output
4+
.output
5+
.vercel
6+
.netlify
7+
.wrangler
8+
/.svelte-kit
9+
/build
10+
11+
# OS
12+
.DS_Store
13+
Thumbs.db
14+
15+
# Env
16+
.env
17+
.env.*
18+
!.env.example
19+
!.env.test
20+
21+
# Vite
22+
vite.config.js.timestamp-*
23+
vite.config.ts.timestamp-*

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# sv
2+
3+
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
4+
5+
## Creating a project
6+
7+
If you're seeing this, you've probably already done this step. Congrats!
8+
9+
```sh
10+
# create a new project
11+
npx sv create my-app
12+
```
13+
14+
To recreate this project with the same configuration:
15+
16+
```sh
17+
# recreate this project
18+
npx sv create --template minimal --types ts --no-install .
19+
```
20+
21+
## Developing
22+
23+
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
24+
25+
```sh
26+
npm run dev
27+
28+
# or start the server and open the app in a new browser tab
29+
npm run dev -- --open
30+
```
31+
32+
## Building
33+
34+
To create a production version of your app:
35+
36+
```sh
37+
npm run build
38+
```
39+
40+
You can preview the production build with `npm run preview`.
41+
42+
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.

migrations/0001_init.sql

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
-- Migration: 0001_init
2+
-- Created: 2024-02-01
3+
4+
CREATE TABLE IF NOT EXISTS users (
5+
id TEXT PRIMARY KEY,
6+
username TEXT UNIQUE NOT NULL,
7+
email TEXT,
8+
avatar_url TEXT,
9+
created_at TEXT DEFAULT (datetime('now')),
10+
updated_at TEXT DEFAULT (datetime('now'))
11+
);
12+
13+
CREATE TABLE IF NOT EXISTS configs (
14+
id TEXT PRIMARY KEY,
15+
user_id TEXT NOT NULL,
16+
slug TEXT NOT NULL,
17+
name TEXT NOT NULL,
18+
description TEXT,
19+
base_preset TEXT DEFAULT 'developer',
20+
packages TEXT,
21+
custom_script TEXT,
22+
is_public INTEGER DEFAULT 1,
23+
created_at TEXT DEFAULT (datetime('now')),
24+
updated_at TEXT DEFAULT (datetime('now')),
25+
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE,
26+
UNIQUE(user_id, slug)
27+
);
28+
29+
CREATE INDEX IF NOT EXISTS idx_configs_user_id ON configs(user_id);
30+
CREATE INDEX IF NOT EXISTS idx_users_username ON users(username);

migrations/0002_add_alias.sql

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- Migration: 0002_add_alias
2+
-- Created: 2024-02-01
3+
-- Note: SQLite doesn't support "IF NOT EXISTS" for ALTER TABLE ADD COLUMN
4+
-- This migration may fail if already applied - that's expected behavior
5+
6+
-- Add alias column (will fail if exists - that's OK)
7+
ALTER TABLE configs ADD COLUMN alias TEXT UNIQUE;
8+
9+
-- Create index (idempotent)
10+
CREATE INDEX IF NOT EXISTS idx_configs_alias ON configs(alias);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE configs ADD COLUMN dotfiles_repo TEXT DEFAULT '';

0 commit comments

Comments
 (0)