1. Create a new demo database #
Docker #
Create a Docker container and set some options
mkdir data
docker run -i -t --rm --name nervatura \
-e NT_API_KEY=DEMO_API_KEY \
-p 5000:5000 -v "$(pwd)"/data:/data nervatura/nervatura:latest
In a new command window:
docker exec -i nervatura /nervatura \
-c DatabaseCreate -k DEMO_API_KEY \
-o "{\"database\":\"demo\",\"demo\":true}"
Snap #
sudo NT_API_KEY=DEMO_API_KEY \
/snap/nervatura/current/nervatura -c DatabaseCreate \
-k DEMO_API_KEY -o "{\"database\":\"demo\",\"demo\":true}"
Database path: /var/snap/nervatura/common/demo.db
Windows #
Open a PowerShell and set the (temporary) variables:
$env:NT_API_KEY="DEMO_API_KEY"
Launch nervatura CLI (in the same command window!), and create a database:
& "C:\Program Files\Nervatura\nervatura.exe" -c DatabaseCreate -k DEMO_API_KEY -o '{\"database\":\"demo\",\"demo\":true}'
Default Nervatura data directory: C:\ProgramData\Nervatura\data
Launch nervatura server (in the same command window or Start menu):
& "C:\Program Files\Nervatura\nervatura.exe" -tray
Of course, the environment variables can also be set permanently (see more SystemPropertiesAdvanced.exe). In this case, the server can be started from anywhere.
Alternatively, the settings can be specified in the parameter:
& "C:\Program Files\Nervatura\nervatura.exe" -tray -env C:\ProgramData\Nervatura\.env.example
NPM #
See Node.js Examples
Admin GUI #
You can use the ADMIN GUI Database section:
API-KEY: DEMO_API_KEY
Alias name: demo
Demo database: true
2. Login to the database: #
Username: admin
Password: Empty password: Please change after the first login!
Database: demo