Easing the development routine with Foxx

113 views
Skip to first unread message

Franck Soudan

unread,
Dec 23, 2016, 6:03:52 AM12/23/16
to ArangoDB
Hello.

Being a newbie to ArangoDB, I'm looking to build a small service with the Foxx framework. In the real world, I open my IDE (WebStorm, in my case), create a new empty project (let's say there: /media/me/DEV/LOCAL/my-foxx-service) and either start from scratch with a manifest file or download a skeleton the ArangoDB web interface will build for me. From there, how can I ease the process of actually updating the code used by arango under /var/lib/arangodb3-apps/_db/_system/my-foxx-service/APP. Do I have to pack and issue a foxx-manager install/update my-foxx-service.zip /my-foxx-service every time I need to test my code? If so, how can I automate the process easily (watching for changes > updating)? Using what chain of tools? If not, is there a piece of software / logic I'm missing?

PS: I also ran arango with docker but I don't understand the benefit of it...

Thank you for pointing me to the right direction.
Message has been deleted

Franck Soudan

unread,
Dec 23, 2016, 6:13:30 AM12/23/16
to ArangoDB
Edit: I'm aware of this --javascript.dev-app-path and was just curious to know is there were an other solution...

Franck Soudan

unread,
Dec 23, 2016, 5:59:46 PM12/23/16
to ArangoDB
Answering my own request for it might be resourceful for someone. I repeat: in a dev process, the goal here is to launch your IDE, open your web browser and start coding, period. For now, I decided to touch the arangodb.conf file and change:
[database]
directory = /path/to/me/code/databases

uid = owner_of_code_path

[javascript]
app-path = /path/to/me/code/apps

I'm not really satisfied because on future release, this configuration file may need to be updated (erased). Anyway, it serves my purpose for now and maybe, in a couple of days, I will have to involve node deps and switch to an npm script solution that auto publishes code. Maybe an update like: foxx-manager publish command, being issued under a directory containing a manifest.json file, would grab a mount point from that name property and install / update the code while leaving any configuration file untouched, or better a foxx-manager watch will apply the dev-mode behavior + some extra logic to any place of an hard drive.

Ajay Sonune

unread,
Aug 9, 2017, 10:04:39 AM8/9/17
to ArangoDB
hello Franck Soudan,
                    I am new with arangodb foxx microservices.
so can i got to know that how to use dev-mode for foxx-services with arangodb version 3.2
Reply all
Reply to author
Forward
0 new messages