See a verbose explanation of how to prepare environment and use the examples on page "Launching Acra from Docker images". The explanation is provided for Python, some minor tweaks might be needed to get Acra examples run with Node.js.
These examples are simple as it may be with hardcoded values (sorry) just to see how you should create acrastructs and see decrypted data from database. Script will do next: encrypt data, save to database, fetch from database and print.
You can override next values in script to adapt to your environment:
raw_data
- message that will be encrypted and saved to dbconfig
- replace host|port|database|user|password with your settings for PostgreSQL. Use AcraConnector's host:port to print decrypted data and database's host:port to print encrypted dataacra_key
- replaceclient_storage.pub
with yours correct path to storage public key
nodejs examples/nodejs/example.js