Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/skitsanos/foxx-api-template
- Owner: skitsanos
- License: mit
- Created: 2019-12-02T20:27:38.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T20:22:03.000Z (about 1 year ago)
- Last Synced: 2024-04-14T03:54:29.495Z (9 months ago)
- Topics: arangodb, arangodb-services, foxx, foxx-service, js, nodejs
- Language: JavaScript
- Size: 14.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 mountedAlso please refer to [Exposing Foxx to the browser](https://www.arangodb.com/docs/stable/foxx-guides-browser.html) on ArangoDB documentation web site.