Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.react-router
build
node_modules
prisma/migrations
README.md
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Generate a random secret using `openssl rand -hex 32`
API_URL=http://localhost:5173
AUTH_GOOGLE_CLIENT_ID=
AUTH_GOOGLE_CLIENT_SECRET=
COOKIE_SECRET=
DATABASE_URL=postgresql://pubkey-protocol-demo:pubkey-protocol-demo@localhost:5432/pubkey-protocol-demo?schema=public
DOMAIN=localhost
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ FROM base AS build
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN pnpm run -r build
RUN pnpm deploy --filter=web --prod /prod/web
RUN pnpm run build
RUN pnpm --filter=web --prod deploy --legacy web

FROM base AS web
COPY --from=build /prod/web /prod/web
COPY --from=build /usr/src/app/web /prod/web
WORKDIR /prod/web
EXPOSE 3000
CMD [ "npm", "start" ]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ This will start a Postgres database using Docker Compose.
### 5. Run the setup script to create the database and tables

```bash
pnpm setup
pnpm run setup
```

### 6. Run the application in development mode
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"scripts": {
"build": "react-router build",
"dev": "react-router dev",
"dev:services": "docker-compose up",
"dev:services": "docker-compose up -d",
"docker:build": "docker build -t pubkey-protocol-demo-web:latest .",
"docker:run": "docker run --rm --name pubkey-protocol-demo-web -p 3000:3000 --env-file apps/web/.env pubkey-protocol-demo-web:latest",
"docker:run": "docker run --rm --name pubkey-protocol-demo-web -p 3000:3000 --env-file .env --network=host pubkey-protocol-demo-web:latest",
"setup": "pnpm prisma migrate deploy && pnpm prisma db push",
"start": "prisma migrate deploy && prisma generate && react-router-serve ./build/server/index.js",
"typecheck": "react-router typegen && tsc",
Expand Down Expand Up @@ -53,10 +53,10 @@
"remix-auth-oauth2": "^3.4.1",
"remix-themes": "^2.0.4",
"zod": "^3.25.67",
"zod-prisma-types": "^3.2.4"
"zod-prisma-types": "^3.2.4",
"@react-router/dev": "^7.6.2"
},
"devDependencies": {
"@react-router/dev": "^7.6.2",
"@types/node": "^24.0.3",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ onlyBuiltDependencies:
- esbuild
- prisma
- utf-8-validate
packages:
- '/*'