Skip to content

Commit

Permalink
Use shorthand region group identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodewig committed Dec 16, 2024
1 parent 3636365 commit 5b38ecc
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,20 @@ To run the app, you'll need:
3. Use the CLI to create the `ECommerceJava` database:
```sh
# Replace 'us-std' with your preferred Region Group
# identifier: 'us-std' (United States), 'eu-std' (Europe),
# or `global`.
# Replace 'us' with your preferred Region Group:
# 'us' (United States), 'eu' (Europe), or `global`.
fauna database create \
--name ECommerceJava \
--database us-std
--database us
```
4. Push the `.fsl` files in the `schema` directory to the `ECommerceJava`
database:
```sh
# Replace 'us-std' with your Region Group identifier.
# Replace 'us' with your Region Group.
fauna schema push \
--database us-std/ECommerceJava \
--database us/ECommerceJava \
--dir ./schema
```
Expand All @@ -119,14 +118,14 @@ To run the app, you'll need:
```sh
fauna schema status \
--database us-std/ECommerceJava
--database us/ECommerceJava
```
6. When the status is `ready`, commit the staged schema to the database:
```sh
fauna schema commit \
--database us-std/ECommerceJava
--database us/ECommerceJava
```
The commit applies the staged schema to the database. The commit creates the
Expand All @@ -137,7 +136,7 @@ To run the app, you'll need:
```sh
fauna query "Key.create({ role: 'server' })" \
--database us-std/ECommerceJava
--database us/ECommerceJava
```
Copy the returned `secret`. The app can use the key's secret to authenticate
Expand Down Expand Up @@ -244,7 +243,7 @@ Customer documents and related API responses:
```sh
fauna schema push \
--database us-std/ECommerceJava \
--database us/ECommerceJava \
--dir ./schema
```
Expand All @@ -253,15 +252,15 @@ Customer documents and related API responses:
4. Check the status of the staged schema:
```sh
fauna schema status \
--database us-std/ECommerceJava
--database us/ECommerceJava
```
5. When the status is `ready`, commit the staged schema changes to the
database:
```sh
fauna schema commit \
--database us-std/ECommerceJava
--database us/ECommerceJava
```
6. In `CustomersController.java`, add the
Expand Down

0 comments on commit 5b38ecc

Please sign in to comment.