Skip to content

Commit 1bbbc55

Browse files
committed
update local dev mode instruction
1 parent 4a20f5a commit 1bbbc55

4 files changed

Lines changed: 32 additions & 1 deletion

File tree

cdk/lib/constructs/auth/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ export class Auth extends Construct {
115115

116116
new CfnOutput(this, 'UserPoolId', { value: userPool.userPoolId });
117117
new CfnOutput(this, 'UserPoolClientId', { value: client.userPoolClientId });
118+
new CfnOutput(this, 'UserPoolDomainName', { value: this.domainName });
118119
}
119120

120121
public addAllowedCallbackUrls(callbackUrl: string, logoutUrl: string) {

cdk/test/__snapshots__/serverless-fullstack-webapp-starter-kit-without-domain.test.ts.snap

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,22 @@ Object {
231231
"Ref": "AuthUserPoolClientC635291F",
232232
},
233233
},
234+
"AuthUserPoolDomainName8D4A2606": Object {
235+
"Value": Object {
236+
"Fn::Join": Array [
237+
"",
238+
Array [
239+
Object {
240+
"Fn::GetAtt": Array [
241+
"AuthDomainPrefixE1742B23",
242+
"generated",
243+
],
244+
},
245+
".auth.us-west-2.amazoncognito.com",
246+
],
247+
],
248+
},
249+
},
234250
"AuthUserPoolIdC0605E59": Object {
235251
"Value": Object {
236252
"Ref": "AuthUserPool8115E87F",

cdk/test/__snapshots__/serverless-fullstack-webapp-starter-kit.test.ts.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,9 @@ Object {
278278
"Ref": "AuthUserPoolClientC635291F",
279279
},
280280
},
281+
"AuthUserPoolDomainName8D4A2606": Object {
282+
"Value": "auth.example.com",
283+
},
281284
"AuthUserPoolIdC0605E59": Object {
282285
"Value": Object {
283286
"Ref": "AuthUserPool8115E87F",

webapp/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
22

3-
## Getting Started
3+
## Run locally
44

55
First, run the development server:
66

77
```bash
8+
# Run this command in the repository root
9+
docker compose up -d
10+
cd webapp
11+
12+
# Run this command in the webapp directory
13+
npx prisma db push
14+
cp .env.local.example .env.local
15+
code .env.local
16+
# Then populate values in .env.local
17+
18+
# run the next.js server
819
npm run dev
920
```
1021

0 commit comments

Comments
 (0)