I am currently running Nextcloud self-hosted, but I am on the process of replacing it with TrueNAS Core.
However, I've grown accustomed to using a couple of apps within Nextcloud, one of them being Nextcloud Bookmarks.
After looking around and not being convinced with any of the existing OSS solutions, I decided the scope is small enough to warrant me writing my own little server that I could self-host too.
docker-compose up
will spin up a PostgreSQL instance and anadminer
frontend to easily interact with it via UI.
You can access this UI via http://localhost:8080
and the DB on the default PostgreSQL port 5432
All credentials for the database are by now hardcoded in docker-compose.yaml
. You will need these values in your .env
file too.
In order to create and populate your own .env
file, duplicate the .env-example
file present at the root of the repo and replace the DB variables with your desired values.
npm run migrate
will seed the database and run all existing migrations. You will need to run this command the first time you are running the database.
-
npm start
will give you a nodemon process watching the TS files and running the node server on the port specified bySERVER_PORT
on your.env
file. -
npm run test
will run the Jest tests available.