@@ -83,30 +83,29 @@ docs](https://docs.fauna.com/fauna/current/tools/shell/).
83
83
84
84
# # Setup
85
85
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:
88
87
89
88
` ` ` sh
90
89
git clone [email protected] :fauna/dotnet-sample-app.git
91
90
cd dotnet-sample-app
92
91
git submodule init && git submodule update
93
92
` ` `
94
93
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
-
104
94
2. Log in to Fauna using the Fauna CLI:
105
95
106
96
` ` ` sh
107
97
fauna cloud-login
108
98
` ` `
109
99
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
+
110
109
The command requires an email and password login. If you log in to the Fauna
111
110
using GitHub or Netlify, you can enable email and password login using the
112
111
[Forgot Password](https://dashboard.fauna.com/forgot-password) workflow.
@@ -118,7 +117,23 @@ docs](https://docs.fauna.com/fauna/current/tools/shell/).
118
117
fauna create-database --environment=' ' EcommerceDotnet
119
118
` ` `
120
119
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`
122
137
database:
123
138
124
139
` ` ` sh
@@ -129,7 +144,7 @@ docs](https://docs.fauna.com/fauna/current/tools/shell/).
129
144
and user-defined functions (UDFs) defined in the FSL files of the
130
145
` schema` directory.
131
146
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:
133
148
134
149
` ` ` sh
135
150
fauna create-key --environment=' ' EcommerceDotnet server
@@ -138,13 +153,13 @@ docs](https://docs.fauna.com/fauna/current/tools/shell/).
138
153
Copy the returned ` secret` . The app can use the key' s secret to authenticate
139
154
requests to the database.
140
155
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:
142
157
143
158
```sh
144
159
cp .env.example .env
145
160
```
146
161
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
148
163
copied earlier:
149
164
150
165
```
0 commit comments