Compare commits
No commits in common. "main" and "095695ca38d26f4da0509abab1a95759cf4d0a9c" have entirely different histories.
main
...
095695ca38
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,7 +1,5 @@
|
|||||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||||
|
|
||||||
pgdata
|
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
/node_modules
|
/node_modules
|
||||||
/.pnp
|
/.pnp
|
||||||
@ -41,5 +39,3 @@ yarn-error.log*
|
|||||||
# typescript
|
# typescript
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
next-env.d.ts
|
next-env.d.ts
|
||||||
|
|
||||||
media
|
|
||||||
|
|||||||
3
.vscode/extensions.json
vendored
3
.vscode/extensions.json
vendored
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"recommendations": ["denoland.vscode-deno"]
|
|
||||||
}
|
|
||||||
24
.vscode/settings.json
vendored
24
.vscode/settings.json
vendored
@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
"deno.enablePaths": [
|
|
||||||
"supabase/functions"
|
|
||||||
],
|
|
||||||
"deno.lint": true,
|
|
||||||
"deno.unstable": [
|
|
||||||
"bare-node-builtins",
|
|
||||||
"byonm",
|
|
||||||
"sloppy-imports",
|
|
||||||
"unsafe-proto",
|
|
||||||
"webgpu",
|
|
||||||
"broadcast-channel",
|
|
||||||
"worker-options",
|
|
||||||
"cron",
|
|
||||||
"kv",
|
|
||||||
"ffi",
|
|
||||||
"fs",
|
|
||||||
"http",
|
|
||||||
"net"
|
|
||||||
],
|
|
||||||
"[typescript]": {
|
|
||||||
"editor.defaultFormatter": "denoland.vscode-deno"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
28
Dockerfile
28
Dockerfile
@ -1,28 +0,0 @@
|
|||||||
FROM node:22-slim AS base
|
|
||||||
ENV PNPM_HOME="/pnpm"
|
|
||||||
ENV PATH="$PNPM_HOME:$PATH"
|
|
||||||
RUN corepack enable
|
|
||||||
|
|
||||||
# Stage 1: Install dependencies
|
|
||||||
FROM base AS deps
|
|
||||||
WORKDIR /app
|
|
||||||
COPY package.json pnpm-lock.yaml ./
|
|
||||||
RUN pnpm install --frozen-lockfile
|
|
||||||
|
|
||||||
# Stage 2: Build the application
|
|
||||||
FROM base AS builder
|
|
||||||
WORKDIR /app
|
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
|
||||||
COPY . .
|
|
||||||
RUN pnpm run build
|
|
||||||
|
|
||||||
# Stage 3: Production server
|
|
||||||
FROM base AS runner
|
|
||||||
WORKDIR /app
|
|
||||||
ENV NODE_ENV=production
|
|
||||||
COPY --from=builder /app/public ./public
|
|
||||||
COPY --from=builder /app/.next/standalone ./
|
|
||||||
COPY --from=builder /app/.next/static ./.next/static
|
|
||||||
|
|
||||||
EXPOSE 3000
|
|
||||||
CMD ["pnpm", "run", "server.js"]
|
|
||||||
@ -1,11 +1,5 @@
|
|||||||
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
|
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
|
||||||
|
|
||||||
## Dev to-do list
|
|
||||||
|
|
||||||
- [x] set up PostgreSQL on Catalyst
|
|
||||||
- [x] install PayloadCMS
|
|
||||||
- [ ] get basic config working
|
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
First, run the development server:
|
First, run the development server:
|
||||||
|
|||||||
@ -1,45 +1,16 @@
|
|||||||
|
---
|
||||||
services:
|
services:
|
||||||
web:
|
postgres:
|
||||||
build: .
|
image: postgres:12.18
|
||||||
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "5432:5432"
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- POSTGRES_USER=postgres
|
||||||
depends_on:
|
- POSTGRES_PASSWORD=admin
|
||||||
- db
|
- POSTGRES_DB=website
|
||||||
networks:
|
|
||||||
- my_network
|
|
||||||
|
|
||||||
db:
|
|
||||||
image: postgres:latest
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: ${POSTGRES_USER}
|
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
||||||
POSTGRES_DB: ${POSTGRES_DB}
|
|
||||||
# ports:
|
|
||||||
# this exposes the database to the public ... do we want that??
|
|
||||||
# - "5432:5432"
|
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- ial-website-data:/var/lib/postgresql/data
|
||||||
networks:
|
|
||||||
- my_network
|
|
||||||
|
|
||||||
cron:
|
|
||||||
image: alpine/curl
|
|
||||||
command: >
|
|
||||||
sh -c "
|
|
||||||
echo '*/10 * * * * curl -X POST http://web:3000/db/clear' > /etc/crontabs/root && \
|
|
||||||
crond -f -l 2
|
|
||||||
"
|
|
||||||
depends_on:
|
|
||||||
- web
|
|
||||||
networks:
|
|
||||||
- my_network
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
ial-website-data:
|
||||||
|
|
||||||
networks:
|
|
||||||
my_network:
|
|
||||||
name: my_network
|
|
||||||
driver: bridge
|
|
||||||
|
|||||||
16
eslint.config.mjs
Normal file
16
eslint.config.mjs
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import { dirname } from "path";
|
||||||
|
import { fileURLToPath } from "url";
|
||||||
|
import { FlatCompat } from "@eslint/eslintrc";
|
||||||
|
|
||||||
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
const __dirname = dirname(__filename);
|
||||||
|
|
||||||
|
const compat = new FlatCompat({
|
||||||
|
baseDirectory: __dirname,
|
||||||
|
});
|
||||||
|
|
||||||
|
const eslintConfig = [
|
||||||
|
...compat.extends("next/core-web-vitals", "next/typescript"),
|
||||||
|
];
|
||||||
|
|
||||||
|
export default eslintConfig;
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 32 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 117 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 150 KiB |
@ -1,10 +1,8 @@
|
|||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
import {withPayload} from "@payloadcms/next/withPayload";
|
import withPayload from "@payloadcms/next/withPayload";
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
/* config options here */
|
/* config options here */
|
||||||
output: "standalone",
|
|
||||||
compress: false,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default withPayload(nextConfig);
|
export default withPayload(nextConfig);
|
||||||
|
|||||||
55
package.json
55
package.json
@ -1,50 +1,37 @@
|
|||||||
{
|
{
|
||||||
"name": "ial-website",
|
"name": "ial-website-2",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
|
||||||
"dev": "next dev",
|
|
||||||
"build": "next build",
|
|
||||||
"start": "node .next/standalone/server.js",
|
|
||||||
"lint": "next lint",
|
|
||||||
"payload": "cross-env PAYLOAD_CONFIG_PATH=./payload.config.ts payload"
|
|
||||||
},
|
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "next dev --turbo",
|
||||||
|
"build": "next build",
|
||||||
|
"start": "next start",
|
||||||
|
"lint": "next lint"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@heroicons/react": "^2.2.0",
|
|
||||||
"@payloadcms/db-postgres": "^3.35.1",
|
"@payloadcms/db-postgres": "^3.35.1",
|
||||||
"@payloadcms/next": "^3.35.1",
|
"@payloadcms/next": "^3.35.1",
|
||||||
"@payloadcms/richtext-lexical": "^3.35.1",
|
"@payloadcms/richtext-lexical": "^3.35.1",
|
||||||
"cross-env": "^7.0.3",
|
"@tailwindcss/postcss": "^4.1.4",
|
||||||
"dayjs": "^1.11.13",
|
|
||||||
"graphql": "^16.10.0",
|
"graphql": "^16.10.0",
|
||||||
"motion": "^12.7.4",
|
"next": "15.3.1",
|
||||||
"next": "15.2.4",
|
|
||||||
"payload": "^3.35.1",
|
"payload": "^3.35.1",
|
||||||
"pg": "^8.14.1",
|
"pg": "8.11.3",
|
||||||
"postcss": "^8.5.3",
|
"postcss": "^8.5.3",
|
||||||
"react": "^19.1.0",
|
"react": "^19.0.0",
|
||||||
"react-dom": "^19.1.0",
|
"react-dom": "^19.0.0",
|
||||||
"sharp": "^0.33.5",
|
"sharp": "^0.34.1",
|
||||||
"tailwind-merge": "^3.2.0"
|
"tailwindcss": "^4.1.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/postcss": "^4.1.4",
|
"@eslint/eslintrc": "^3",
|
||||||
"@tailwindcss/typography": "^0.5.16",
|
"@types/node": "^20",
|
||||||
"@types/node": "^20.17.30",
|
"@types/react": "^19",
|
||||||
"@types/react": "^19.1.2",
|
"@types/react-dom": "^19",
|
||||||
"@types/react-dom": "^19.1.2",
|
"eslint": "^9",
|
||||||
"clsx": "^2.1.1",
|
"eslint-config-next": "15.3.1",
|
||||||
"prettier": "^3.5.3",
|
"prettier": "^3.5.3",
|
||||||
"tailwindcss": "^4.1.4",
|
"typescript": "^5"
|
||||||
"typescript": "^5.8.3"
|
|
||||||
},
|
|
||||||
"pnpm": {
|
|
||||||
"onlyBuiltDependencies": [
|
|
||||||
"@swc/core",
|
|
||||||
"core-js",
|
|
||||||
"es5-ext",
|
|
||||||
"sharp"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
1
pgdata/PG_VERSION
Normal file
1
pgdata/PG_VERSION
Normal file
@ -0,0 +1 @@
|
|||||||
|
12
|
||||||
BIN
pgdata/base/1/112
Normal file
BIN
pgdata/base/1/112
Normal file
Binary file not shown.
BIN
pgdata/base/1/113
Normal file
BIN
pgdata/base/1/113
Normal file
Binary file not shown.
BIN
pgdata/base/1/1247
Normal file
BIN
pgdata/base/1/1247
Normal file
Binary file not shown.
BIN
pgdata/base/1/1247_fsm
Normal file
BIN
pgdata/base/1/1247_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/1247_vm
Normal file
BIN
pgdata/base/1/1247_vm
Normal file
Binary file not shown.
BIN
pgdata/base/1/1249
Normal file
BIN
pgdata/base/1/1249
Normal file
Binary file not shown.
BIN
pgdata/base/1/1249_fsm
Normal file
BIN
pgdata/base/1/1249_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/1249_vm
Normal file
BIN
pgdata/base/1/1249_vm
Normal file
Binary file not shown.
BIN
pgdata/base/1/1255
Normal file
BIN
pgdata/base/1/1255
Normal file
Binary file not shown.
BIN
pgdata/base/1/1255_fsm
Normal file
BIN
pgdata/base/1/1255_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/1255_vm
Normal file
BIN
pgdata/base/1/1255_vm
Normal file
Binary file not shown.
BIN
pgdata/base/1/1259
Normal file
BIN
pgdata/base/1/1259
Normal file
Binary file not shown.
BIN
pgdata/base/1/1259_fsm
Normal file
BIN
pgdata/base/1/1259_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/1259_vm
Normal file
BIN
pgdata/base/1/1259_vm
Normal file
Binary file not shown.
BIN
pgdata/base/1/13316
Normal file
BIN
pgdata/base/1/13316
Normal file
Binary file not shown.
BIN
pgdata/base/1/13316_fsm
Normal file
BIN
pgdata/base/1/13316_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/13316_vm
Normal file
BIN
pgdata/base/1/13316_vm
Normal file
Binary file not shown.
0
pgdata/base/1/13318
Normal file
0
pgdata/base/1/13318
Normal file
BIN
pgdata/base/1/13320
Normal file
BIN
pgdata/base/1/13320
Normal file
Binary file not shown.
BIN
pgdata/base/1/13321
Normal file
BIN
pgdata/base/1/13321
Normal file
Binary file not shown.
BIN
pgdata/base/1/13321_fsm
Normal file
BIN
pgdata/base/1/13321_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/13321_vm
Normal file
BIN
pgdata/base/1/13321_vm
Normal file
Binary file not shown.
0
pgdata/base/1/13323
Normal file
0
pgdata/base/1/13323
Normal file
BIN
pgdata/base/1/13325
Normal file
BIN
pgdata/base/1/13325
Normal file
Binary file not shown.
BIN
pgdata/base/1/13326
Normal file
BIN
pgdata/base/1/13326
Normal file
Binary file not shown.
BIN
pgdata/base/1/13326_fsm
Normal file
BIN
pgdata/base/1/13326_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/13326_vm
Normal file
BIN
pgdata/base/1/13326_vm
Normal file
Binary file not shown.
0
pgdata/base/1/13328
Normal file
0
pgdata/base/1/13328
Normal file
BIN
pgdata/base/1/13330
Normal file
BIN
pgdata/base/1/13330
Normal file
Binary file not shown.
BIN
pgdata/base/1/13331
Normal file
BIN
pgdata/base/1/13331
Normal file
Binary file not shown.
BIN
pgdata/base/1/13331_fsm
Normal file
BIN
pgdata/base/1/13331_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/13331_vm
Normal file
BIN
pgdata/base/1/13331_vm
Normal file
Binary file not shown.
0
pgdata/base/1/13333
Normal file
0
pgdata/base/1/13333
Normal file
BIN
pgdata/base/1/13335
Normal file
BIN
pgdata/base/1/13335
Normal file
Binary file not shown.
BIN
pgdata/base/1/13336
Normal file
BIN
pgdata/base/1/13336
Normal file
Binary file not shown.
BIN
pgdata/base/1/13336_fsm
Normal file
BIN
pgdata/base/1/13336_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/13336_vm
Normal file
BIN
pgdata/base/1/13336_vm
Normal file
Binary file not shown.
0
pgdata/base/1/13338
Normal file
0
pgdata/base/1/13338
Normal file
BIN
pgdata/base/1/13340
Normal file
BIN
pgdata/base/1/13340
Normal file
Binary file not shown.
BIN
pgdata/base/1/13341
Normal file
BIN
pgdata/base/1/13341
Normal file
Binary file not shown.
BIN
pgdata/base/1/13341_fsm
Normal file
BIN
pgdata/base/1/13341_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/13341_vm
Normal file
BIN
pgdata/base/1/13341_vm
Normal file
Binary file not shown.
0
pgdata/base/1/13343
Normal file
0
pgdata/base/1/13343
Normal file
BIN
pgdata/base/1/13345
Normal file
BIN
pgdata/base/1/13345
Normal file
Binary file not shown.
0
pgdata/base/1/13346
Normal file
0
pgdata/base/1/13346
Normal file
0
pgdata/base/1/13348
Normal file
0
pgdata/base/1/13348
Normal file
BIN
pgdata/base/1/13350
Normal file
BIN
pgdata/base/1/13350
Normal file
Binary file not shown.
0
pgdata/base/1/1417
Normal file
0
pgdata/base/1/1417
Normal file
0
pgdata/base/1/1418
Normal file
0
pgdata/base/1/1418
Normal file
BIN
pgdata/base/1/174
Normal file
BIN
pgdata/base/1/174
Normal file
Binary file not shown.
BIN
pgdata/base/1/175
Normal file
BIN
pgdata/base/1/175
Normal file
Binary file not shown.
BIN
pgdata/base/1/2187
Normal file
BIN
pgdata/base/1/2187
Normal file
Binary file not shown.
0
pgdata/base/1/2224
Normal file
0
pgdata/base/1/2224
Normal file
0
pgdata/base/1/2328
Normal file
0
pgdata/base/1/2328
Normal file
0
pgdata/base/1/2336
Normal file
0
pgdata/base/1/2336
Normal file
BIN
pgdata/base/1/2337
Normal file
BIN
pgdata/base/1/2337
Normal file
Binary file not shown.
BIN
pgdata/base/1/2579
Normal file
BIN
pgdata/base/1/2579
Normal file
Binary file not shown.
BIN
pgdata/base/1/2600
Normal file
BIN
pgdata/base/1/2600
Normal file
Binary file not shown.
BIN
pgdata/base/1/2600_fsm
Normal file
BIN
pgdata/base/1/2600_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/2600_vm
Normal file
BIN
pgdata/base/1/2600_vm
Normal file
Binary file not shown.
BIN
pgdata/base/1/2601
Normal file
BIN
pgdata/base/1/2601
Normal file
Binary file not shown.
BIN
pgdata/base/1/2601_fsm
Normal file
BIN
pgdata/base/1/2601_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/2601_vm
Normal file
BIN
pgdata/base/1/2601_vm
Normal file
Binary file not shown.
BIN
pgdata/base/1/2602
Normal file
BIN
pgdata/base/1/2602
Normal file
Binary file not shown.
BIN
pgdata/base/1/2602_fsm
Normal file
BIN
pgdata/base/1/2602_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/2602_vm
Normal file
BIN
pgdata/base/1/2602_vm
Normal file
Binary file not shown.
BIN
pgdata/base/1/2603
Normal file
BIN
pgdata/base/1/2603
Normal file
Binary file not shown.
BIN
pgdata/base/1/2603_fsm
Normal file
BIN
pgdata/base/1/2603_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/2603_vm
Normal file
BIN
pgdata/base/1/2603_vm
Normal file
Binary file not shown.
0
pgdata/base/1/2604
Normal file
0
pgdata/base/1/2604
Normal file
BIN
pgdata/base/1/2605
Normal file
BIN
pgdata/base/1/2605
Normal file
Binary file not shown.
BIN
pgdata/base/1/2605_fsm
Normal file
BIN
pgdata/base/1/2605_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/2605_vm
Normal file
BIN
pgdata/base/1/2605_vm
Normal file
Binary file not shown.
BIN
pgdata/base/1/2606
Normal file
BIN
pgdata/base/1/2606
Normal file
Binary file not shown.
BIN
pgdata/base/1/2606_fsm
Normal file
BIN
pgdata/base/1/2606_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/2606_vm
Normal file
BIN
pgdata/base/1/2606_vm
Normal file
Binary file not shown.
BIN
pgdata/base/1/2607
Normal file
BIN
pgdata/base/1/2607
Normal file
Binary file not shown.
BIN
pgdata/base/1/2607_fsm
Normal file
BIN
pgdata/base/1/2607_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/2607_vm
Normal file
BIN
pgdata/base/1/2607_vm
Normal file
Binary file not shown.
BIN
pgdata/base/1/2608
Normal file
BIN
pgdata/base/1/2608
Normal file
Binary file not shown.
BIN
pgdata/base/1/2608_fsm
Normal file
BIN
pgdata/base/1/2608_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/2608_vm
Normal file
BIN
pgdata/base/1/2608_vm
Normal file
Binary file not shown.
BIN
pgdata/base/1/2609
Normal file
BIN
pgdata/base/1/2609
Normal file
Binary file not shown.
BIN
pgdata/base/1/2609_fsm
Normal file
BIN
pgdata/base/1/2609_fsm
Normal file
Binary file not shown.
BIN
pgdata/base/1/2609_vm
Normal file
BIN
pgdata/base/1/2609_vm
Normal file
Binary file not shown.
BIN
pgdata/base/1/2610
Normal file
BIN
pgdata/base/1/2610
Normal file
Binary file not shown.
BIN
pgdata/base/1/2610_fsm
Normal file
BIN
pgdata/base/1/2610_fsm
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user