You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In package.json in *scripts* section you will find a number of shortcuts that will help you register your server with foxx-cli, and install or replace Foxx microservice on your server.
21
+
22
+
2. Install foxx-cli if you don't have it yet [https://github.com/arangodb/foxx-cli#install](https://github.com/arangodb/foxx-cli#install)
23
+
24
+
3. Register your ArangoDB server so you can install and replace your Foxx Microservices, for example:
25
+
26
+
```sh
27
+
$foxx server set dev http://dev:sandbox@localhost:8529
28
+
```
29
+
30
+
By executing this command, we assume that you already created a user _dev_ with password _sandbox_ on _localhost_ server, and we register this server to foxx-cli as _dev_.
31
+
32
+
If you define servers using the `server` commands, a `.foxxrc` file will be created in your `$HOME` directory, which is typically one of the following paths:
33
+
34
+
-`/home/$USER` on Linux
35
+
-`/Users/$USER` on macOS
36
+
-`C:\Users\$USER` on Windows
37
+
38
+
This file contains sections for each server which may contain server credentials should you decide to save them.
39
+
40
+
4. The example below shows how you can install this Foxx Microservice on _dev_ server to _dev_ database and mount it as _/api_ endpoint.
41
+
42
+
```sh
43
+
$foxx install /api . --server dev --database dev
44
+
```
45
+
20
46
### Folder Structure
21
47
22
48
There are very few bits required to make your foxx services up and running. The folder structure defined in a way that will help you to have better control over API application architecture with a minimal coding effort from your side.
@@ -25,6 +51,7 @@ There are very few bits required to make your foxx services up and running. The
0 commit comments