-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.sh
executable file
·25 lines (20 loc) · 1022 Bytes
/
init.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# Initialize Next.js Client App
npx create-next-app --ts --src-dir --tailwind --eslint --app --import-alias "@/*" safe-contract-changes-demo-app
mv safe-contract-changes-demo-app app
# Initialize Java Server Api
spring init --build maven --dependencies=web,webflux,data-jpa,postgresql,liquibase -g "au.chrissimon" --package-name "au.chrissimon.safecontractchangesdemo" -n Demo -a SafeContractChangesDemo server --description "Demo of making safe contract changes. See https://github.com/chrissimon-au/safe-contract-changes-demo-java."
# Initialize Database
PGPASSWORD=postgres psql -h db -U postgres -c "CREATE DATABASE safecontractchangesdemo;"
# Initialize E2E tests
mkdir tests
cd tests
npx create-playwright --quiet safe-contract-changes-e2e-tests
mv safe-contract-changes-e2e-tests e2e
npx playwright install-deps
# Initialize Infrastructure
mkdir safe-contract-changes-demo-infra
cd safe-contract-changes-demo-infra
cdk init app --language typescript
cd ..
mv safe-contract-changes-demo-infra infra