@@ -83,30 +83,29 @@ docs](https://docs.fauna.com/fauna/current/tools/shell/).
8383
8484# # Setup
8585
86- 1. In your terminal, clone the repo and navigate to the ` dotnet-sample-app`
87- directory. For example:
86+ 1. Clone the repo and navigate to the ` dotnet-sample-app` directory:
8887
8988 ` ` ` sh
9089 git clone [email protected] :fauna/dotnet-sample-app.git 9190 cd dotnet-sample-app
9291 git submodule init && git submodule update
9392 ` ` `
9493
95- The repo includes a
96- [` .fauna-project` ](https://docs.fauna.com/fauna/current/tools/shell/# proj-config)
97- file that contains defaults for the Fauna CLI. The file indicates:
98-
99- - ` EcommerceDotnet` is the default database for the project.
100-
101- - The project stores Fauna Schema Language (FSL) files in the
102- ` schema` directory.
103-
104942. Log in to Fauna using the Fauna CLI:
10595
10696 ` ` ` sh
10797 fauna cloud-login
10898 ` ` `
10999
100+ When prompted, enter:
101+
102+ * ** Endpoint name:** ` cloud` (Press Enter)
103+ * ** Email address:** The email address for your Fauna account.
104+ * ** Password:** The password for your Fauna account.
105+ * ** Which endpoint would you like to set as default?** The ` cloud-* `
106+ endpoint for your preferred region group. For example, to use the US
107+ region group, use ` cloud-us` .
108+
110109 The command requires an email and password login. If you log in to the Fauna
111110 using GitHub or Netlify, you can enable email and password login using the
112111 [Forgot Password](https://dashboard.fauna.com/forgot-password) workflow.
@@ -118,7 +117,23 @@ docs](https://docs.fauna.com/fauna/current/tools/shell/).
118117 fauna create-database --environment=' ' EcommerceDotnet
119118 ` ` `
120119
121- 4. Push the FSL files in the ` schema` directory to the ` EcommerceDotnet`
120+ 4. Create a
121+ [` .fauna-project` ](https://docs.fauna.com/fauna/current/tools/shell/# proj-config)
122+ config file for the project:
123+
124+ ` ` ` sh
125+ fauna project init
126+ ` ` `
127+
128+ When prompted, enter:
129+
130+ * ` schema` as the schema directory.
131+ * ` dev` as the environment name.
132+ * The default endpoint.
133+ * ` EcommerceDotnet` as the database.
134+
135+
136+ 5. Push the FSL files in the ` schema` directory to the ` EcommerceDotnet`
122137 database:
123138
124139 ` ` ` sh
@@ -129,7 +144,7 @@ docs](https://docs.fauna.com/fauna/current/tools/shell/).
129144 and user-defined functions (UDFs) defined in the FSL files of the
130145 ` schema` directory.
131146
132- 5 . Create a key with the ` server` role for the ` EcommerceDotnet` database:
147+ 6 . Create a key with the ` server` role for the ` EcommerceDotnet` database:
133148
134149 ` ` ` sh
135150 fauna create-key --environment=' ' EcommerceDotnet server
@@ -138,13 +153,13 @@ docs](https://docs.fauna.com/fauna/current/tools/shell/).
138153 Copy the returned ` secret` . The app can use the key' s secret to authenticate
139154 requests to the database.
140155
141- 6 . Make a copy of the `.env.example` file and name the copy `.env`. For example:
156+ 7 . Make a copy of the `.env.example` file and name the copy `.env`. For example:
142157
143158 ```sh
144159 cp .env.example .env
145160 ```
146161
147- 7 . In `.env`, set the `FAUNA_SECRET` environment variable to the secret you
162+ 8 . In `.env`, set the `FAUNA_SECRET` environment variable to the secret you
148163 copied earlier:
149164
150165 ```
0 commit comments