Testing implementation for private data in ATProto with ATPKeyserver and ATCute tools
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

update default redirect urls in docs and envs

+15 -15
+5 -5
CLAUDE.md
··· 69 69 ### Typical Development Workflow 70 70 1. **Terminal 1** (Server): `cd packages/server && bun run dev` 71 71 2. **Terminal 2** (Client): `cd packages/client && bun run dev` 72 - 3. **Access**: Open http://localhost:5173 in browser (client proxies to server) 72 + 3. **Access**: Open http://127.0.0.1:5173 in browser (client proxies to server) 73 73 74 74 ## Architecture 75 75 ··· 128 128 - `BASE_URL` - OAuth redirect base URL (production) 129 129 130 130 **Client** (`packages/client/.env.local`): 131 - - `VITE_API_URL` - Server API URL (e.g., http://localhost:3000) 131 + - `VITE_API_URL` - Server API URL (e.g., http://localhost:4000) 132 132 133 133 ## Package-Specific Documentation 134 134 ··· 237 237 ``` 238 238 239 239 4. **Access the application**: 240 - - Client: http://localhost:5173 241 - - Server API: http://localhost:3000 242 - - API Docs: http://localhost:3000/swagger 240 + - Client: http://127.0.0.1:5173 241 + - Server API: http://localhost:4000 242 + - API Docs: http://localhost:4000/openapi 243 243 244 244 ## Troubleshooting 245 245
+5 -5
README.md
··· 57 57 PORT=3000 58 58 DATABASE_URL=./data/dev.db 59 59 AUTH_SECRET=your-secret-key-here 60 - BASE_URL=http://localhost:3000 60 + BASE_URL=http://localhost:4000 61 61 ``` 62 62 63 63 **Client** (`packages/client/.env.local`): 64 64 ```env 65 - VITE_API_URL=http://localhost:3000 65 + VITE_API_URL=http://localhost:4000 66 66 ``` 67 67 68 68 ### Development ··· 82 82 ``` 83 83 84 84 Then open: 85 - - **Frontend**: http://localhost:5173 86 - - **API**: http://localhost:3000 87 - - **API Docs**: http://localhost:3000/swagger 85 + - **Frontend**: http://127.0.0.1:5173 86 + - **API**: http://localhost:4000 87 + - **API Docs**: http://localhost:4000/openapi 88 88 89 89 ### Alternative: Run from Root 90 90
+2 -2
packages/client/CLAUDE.md
··· 93 93 94 94 **Environment Configuration**: 95 95 - `VITE_API_URL` - Server API base URL (configured in `.env.local`) 96 - - Development default: `http://localhost:3000` 96 + - Development default: `http://localhost:4000` 97 97 - Production: Set to your deployed server URL 98 98 99 99 **Making API Calls**: ··· 246 246 bun run dev 247 247 ``` 248 248 249 - 3. **Access app**: Open `http://localhost:5173` in browser 249 + 3. **Access app**: Open `http://127.0.0.1:5173` in browser 250 250 251 251 ### Adding New Features 252 252 1. Create route files in `app/routes/`
+1 -1
packages/client/README.md
··· 32 32 npm run dev 33 33 ``` 34 34 35 - Your application will be available at `http://localhost:5173`. 35 + Your application will be available at `http://127.0.0.1:5173`. 36 36 37 37 ## Building for Production 38 38
+1 -1
packages/server/CLAUDE.md
··· 165 165 - `AUTH_SECRET` - Secret for cookie signing 166 166 - `BASE_URL` - Full base URL for OAuth redirects (required in production) 167 167 - `ALLOWED_REDIRECT_ORIGINS` - Comma-separated list of allowed client origins (required) 168 - - Example: `http://localhost:5173,https://app.example.com,https://staging-app.example.com` 168 + - Example: `http://127.0.0.1:5173,https://app.example.com,https://staging-app.example.com` 169 169 - Used to validate redirect URIs and prevent open redirect vulnerabilities 170 170 - Must use exact origin format (protocol + host + port) 171 171 - First origin in list is used as default when redirect_uri not provided
+1 -1
packages/server/src/lib/redirect-validator.ts
··· 20 20 } 21 21 } 22 22 23 - const DEFAULT_LOCAL_REDIRECT_URI = 'http://localhost:5173' 23 + const DEFAULT_LOCAL_REDIRECT_URI = 'http://127.0.0.1:5173' 24 24 25 25 /** 26 26 * Gets the default redirect URI for the environment