Skip to content
Merged
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This project is a pnpm workspace monorepo:
```text
apps/
frontend/ TanStack Start app (React + Vite, port 3000)
backend/ Apollo Server + GraphQL API (Pothos + Prisma, port 4000)
backend/ Apollo Server + GraphQL API (Pothos + Prisma, port 3001)
packages/
db/ Prisma schema, generated client, migrations and seed
```
Expand Down Expand Up @@ -44,7 +44,7 @@ pnpm db:seed
pnpm dev
```

Frontend: http://localhost:3000 · GraphQL API: http://localhost:4000
Frontend: http://localhost:3000 · GraphQL API: http://localhost:3001

### Commands

Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/graphql/client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const GRAPHQL_URL = import.meta.env.VITE_GRAPHQL_URL ?? 'http://localhost:4000/'
const GRAPHQL_URL = import.meta.env.VITE_GRAPHQL_URL ?? 'http://localhost:3001/'

interface GraphQLResponse<T> {
data?: T
Expand Down
4 changes: 2 additions & 2 deletions apps/frontend/src/routes/demo/todos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function DemoTodos() {
{isError && (
<p className="demo-muted mb-6 text-sm">
Failed to load todos: {error.message}. Is the GraphQL backend
running on http://localhost:4000?
running on http://localhost:3001?
</p>
)}

Expand Down Expand Up @@ -127,7 +127,7 @@ function DemoTodos() {
Powered by GraphQL + Apollo Server
</h3>
<p className="demo-muted mb-4 text-sm">
The frontend queries the GraphQL backend on port 4000, which uses
The frontend queries the GraphQL backend on port 3001, which uses
Prisma to talk to PostgreSQL
</p>
<div className="space-y-2 text-sm">
Expand Down