Compare commits

..

23 Commits

Author SHA1 Message Date
d2e5e8f69d Add dynamic page title 2026-02-17 18:25:11 +13:00
817c857fde remove alert from delete function 2026-02-17 16:33:37 +13:00
f30262be3b order entries list by date 2026-02-17 16:31:51 +13:00
f4d503c335 increase size of image 2026-02-17 16:13:54 +13:00
70bd76f49e always show editor 2026-02-17 12:37:17 +13:00
c428aae077 fix create new entry endpoint 2026-02-17 12:36:02 +13:00
89d2aaca75 EDITOR WORK COMPLETE 2026-02-17 12:35:46 +13:00
4413374429 default editor to today 2026-02-17 11:58:22 +13:00
2a953ef5ce Add param matcher to ensure random paths dont crash the app 2026-02-17 11:34:23 +13:00
0b038f4dea okay working now, datevalue respects current page 2026-02-17 11:22:38 +13:00
1d6e5b5d4c Just need a checkpoint cos nothings working atm 2026-02-17 11:13:03 +13:00
c5d689a9a8 Implementing different page for the entries, for sharability ig 2026-02-13 10:37:17 +13:00
f557360105 max width only applies on large screens 2026-02-12 12:06:38 +13:00
caf6eabe32 more editor work 2026-02-12 09:01:33 +13:00
1eb42c7a18 poc of new editor is,, progressing 2026-02-11 22:07:30 +13:00
865846c6be schema update: change from timestamp to date 2026-02-11 21:55:35 +13:00
e978d0df97 Redesign entry summary view and more importantly rearchitected that awful state management 2026-02-11 20:51:45 +13:00
31bfbffb4d calendar takes up full width now 2026-02-11 20:12:17 +13:00
a0d63fc10e removed white text enforcement lol 2026-02-11 19:56:56 +13:00
09585d8954 images go behind the dates now 2026-02-11 19:55:48 +13:00
74023040fc i mean calendar *works* now, just gotta make it look okay 2026-02-11 19:25:34 +13:00
a61b342c4c calendar work is happening 2026-02-11 19:15:03 +13:00
b99e636e74 Add shadcn svelte, theme button 2026-02-11 18:41:42 +13:00
5 changed files with 2 additions and 96 deletions

1
.gitignore vendored
View File

@@ -17,7 +17,6 @@ Thumbs.db
.env.*
!.env.example
!.env.test
pgdata
# Vite
vite.config.js.timestamp-*

View File

@@ -1,54 +0,0 @@
# Build stage
FROM node:22-alpine AS builder
WORKDIR /app
# Copy package files
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
# Install pnpm
RUN npm install -g pnpm
# Install all dependencies (including dev)
RUN pnpm install --frozen-lockfile
# Copy source code
COPY . .
# Build the application
RUN pnpm run build
# Production stage
FROM node:22-alpine
WORKDIR /app
# Copy package files from builder
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
# Install pnpm
RUN npm install -g pnpm
# Install all dependencies (including dev for drizzle-kit)
RUN pnpm install --frozen-lockfile
# Copy built application from builder
COPY --from=builder /app/build ./build
# Copy drizzle config and schema for migrations
COPY drizzle.config.ts ./
COPY tsconfig.json ./
COPY src/lib/server/db ./src/lib/server/db
# Install netcat for database readiness check
RUN apk add --no-cache netcat-openbsd
# Copy entrypoint script
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
# Expose port (SvelteKit Node adapter default)
EXPOSE 5173
# Start the application
ENTRYPOINT ["/app/entrypoint.sh"]

View File

@@ -9,22 +9,4 @@ services:
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_DB: memento
volumes:
# - ~/tmp/pgdata:/var/lib/postgresql
- ./pgdata:/var/lib/postgresql
app:
build: .
restart: always
ports:
- 5173:3000
depends_on:
- db
environment:
DATABASE_URL: postgresql://root:mysecretpassword@db:5432/memento
UPLOAD_DIR: /app/uploads
volumes:
# - .:/app
- ./uploads:/app/uploads
# - /app/node_modules
- ~/tmp/pgdata:/var/lib/postgresql

View File

@@ -1,14 +0,0 @@
#!/bin/sh
# Wait for PostgreSQL to be ready
while ! nc -z db 5432; do
sleep 1
done
# Run database migrations
echo "Pushing database schema..."
pnpm run db:push
# Start the application
echo "Starting application..."
node build

View File

@@ -1,13 +1,6 @@
import adapter from '@sveltejs/adapter-node';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter(),
csrf: {
checkOrigin: false
}
}
};
const config = { kit: { adapter: adapter() } };
export default config;