You will need Go 1.23, git, make and curl.
$ git clone [email protected]:cozy-labs/cozy-nextdb.git
$ cd cozy-nextdb
Install postgresql and create a database, with a user that can use it:
# apt install postgresql postgresql-contrib
# sudo -i -u postgres
$ psql
> CREATE DATABASE nextdb;
> CREATE USER nextdb WITH PASSWORD 'nextdb';
> GRANT ALL PRIVILEGES ON DATABASE nextdb TO nextdb;