diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index a8b7743..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/app-client-starter-app/.DS_Store b/app-client-starter-app/.DS_Store deleted file mode 100644 index e048ec6..0000000 Binary files a/app-client-starter-app/.DS_Store and /dev/null differ diff --git a/app-client-starter-app/README.md b/app-client-starter-app/README.md index 8f82bfe..a22b1bd 100644 --- a/app-client-starter-app/README.md +++ b/app-client-starter-app/README.md @@ -47,7 +47,7 @@ Use it as a starting point for your own integration. Clone it, configure it with | `BUFFER_CLIENT_ID` | Your app client ID from Buffer. | | `BUFFER_CLIENT_SECRET` | Required for a confidential client. Never expose it to the browser or commit it. | | `SESSION_SECRET` | At least 32 characters. Generate one with `openssl rand -hex 32`. Optional locally, required in production. | - | `REDIRECT_URI` | Optional locally and on your Vercel production deployment. If set, it must exactly match the redirect URI registered for your app client. Vercel preview deployments have no default callback, so login is disabled on them unless you register the preview's `/callback` URL and set `REDIRECT_URI` for that environment. | + | `REDIRECT_URI` | It must exactly match the redirect URI registered for your app client. | 4. Generate a self-signed certificate for local HTTPS: @@ -57,7 +57,7 @@ Use it as a starting point for your own integration. Clone it, configure it with Buffer doesn't accept `http://localhost` redirect URIs, so the dev server runs over HTTPS. If you skip this step, `npm start` generates the certificate on first run. -## Run it locally +5. Run the app locally: ```bash npm start @@ -65,13 +65,6 @@ npm start Open `https://localhost:3000` and accept the self-signed development certificate in your browser. -To run the tests and syntax checks: - -```bash -npm test -npm run lint -``` - ## Project structure | Path | What it holds | diff --git a/app-client-starter-app/server.js b/app-client-starter-app/server.js index 4343aff..252ab32 100644 --- a/app-client-starter-app/server.js +++ b/app-client-starter-app/server.js @@ -20,6 +20,7 @@ const platformTerminatesTls = IS_PRODUCTION function describe(scheme) { console.log(`\n Listening on ${scheme}://0.0.0.0:${PORT}`) + if (!platformTerminatesTls) console.log(` Open: ${scheme}://localhost:${PORT}`) console.log(` Redirect URI: ${REDIRECT_URI}`) console.log(` Client: ${CLIENT_ID} (${CLIENT_SECRET ? 'confidential' : 'public / PKCE only'})`) if (scheme === 'https') console.log('\n The certificate is self-signed — accept the browser warning once.')