Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/skitsanos/foxx-api-template

ArangoDB Foxx Services Template
https://github.com/skitsanos/foxx-api-template

arangodb arangodb-services foxx foxx-service js nodejs

Last synced: about 1 month ago
JSON representation

ArangoDB Foxx Services Template

Awesome Lists containing this project

README

        

# foxx-api-template
ArangoDB Foxx Services Template

### netlify.toml example
```toml
[build]
base = "."
publish = "./dist"
functions = "netlify-functions/"

[[redirects]]
from = "/*"
to = "/index.html"
status = 200

[[redirects]]
from = "/api/*"
to = "http://{YOUR_HOSTNAME}:8529/_db/{YOUR_ENDPOINT}/api/:splat"
status = 200
force = true
headers = {X-From = "Netlify"}

[[headers]]
for = "/*"

[headers.values]
x-designed-by = "skitsanos, https://github.com/skitsanos"
```

Before deploying it on Netlify, make sure there are two variables replaced:

- {YOUR_HOSTNAME} - the hostname where ArangoDb is running
- {YOUR_ENDPOINT} - endpoint where your flex services are mounted

Also please refer to [Exposing Foxx to the browser](https://www.arangodb.com/docs/stable/foxx-guides-browser.html) on ArangoDB documentation web site.