Skip to content

Commit cb2a923

Browse files
iamgpampcode-com
andcommitted
Initial commit
Amp-Thread-ID: https://ampcode.com/threads/T-019c5e04-8f16-74d3-bd7f-995c4263da10 Co-authored-by: Amp <amp@ampcode.com>
0 parents  commit cb2a923

66 files changed

Lines changed: 17764 additions & 0 deletions

Some content is hidden

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

.github/workflows/deploy.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 22
26+
cache: npm
27+
cache-dependency-path: web/package-lock.json
28+
29+
- run: npm ci
30+
working-directory: web
31+
32+
- run: npm run build
33+
working-directory: web
34+
35+
- uses: actions/upload-pages-artifact@v3
36+
with:
37+
path: web/dist
38+
39+
deploy:
40+
needs: build
41+
runs-on: ubuntu-latest
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
steps:
46+
- id: deployment
47+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Build output
5+
dist/
6+
7+
# TanStack generated
8+
.tanstack/
9+
10+
# OS files
11+
.DS_Store
12+
Thumbs.db
13+
14+
# Editor
15+
.vscode/
16+
.idea/
17+
*.swp
18+
*.swo
19+
20+
# Environment
21+
.env
22+
.env.local
23+
.env.*.local
24+
25+
# Logs
26+
*.log
27+
npm-debug.log*

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.PHONY: dev stop logs build
2+
3+
dev:
4+
pm2 start ecosystem.config.cjs
5+
6+
stop:
7+
pm2 delete ecosystem.config.cjs 2>/dev/null || true
8+
9+
logs:
10+
pm2 logs phlo-web
11+
12+
build:
13+
cd web && npm run build

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Phlo Website & Plugin Registry
2+
3+
Static website and plugin registry for [Phlo](https://github.com/iamgp/phlo) — a modern data lakehouse platform.
4+
5+
Deployed to GitHub Pages at `phlohouse.com`. The CLI fetches `phlohouse.com/plugins.json` for the plugin registry.
6+
7+
## Development
8+
9+
```bash
10+
cd web
11+
npm install
12+
npm run dev # http://localhost:3000
13+
```
14+
15+
Or with pm2 from the root:
16+
17+
```bash
18+
make dev # start
19+
make logs # tail
20+
make stop # kill
21+
```
22+
23+
## Build
24+
25+
```bash
26+
cd web
27+
npm run build # outputs to dist/
28+
```
29+
30+
The build script pre-processes blog markdown into JSON and Vite builds a static SPA.
31+
32+
## Adding Blog Posts
33+
34+
Drop a `.md` file into `web/content/blog/` with frontmatter:
35+
36+
```yaml
37+
---
38+
title: "Your Post Title"
39+
description: "One-sentence summary for the listing page."
40+
---
41+
# Your Post Title
42+
43+
Content here...
44+
```
45+
46+
Files are numbered (`01-slug.md`, `02-slug.md`) to control ordering.
47+
48+
## Plugin Registry
49+
50+
`web/public/plugins.json` is the static registry. The phlo CLI fetches this file directly. Update it when plugins change.

ecosystem.config.cjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
apps: [
3+
{
4+
name: 'phlo-web',
5+
cwd: './web',
6+
script: 'npx',
7+
args: 'vite',
8+
autorestart: true,
9+
},
10+
],
11+
}

0 commit comments

Comments
 (0)