Sync server for Notesnook (self-hosting in alpha)
Sync server for Notesnook (self-hosting in alpha)
This repo contains the full source code of the Notesnook Sync Server licensed under AGPLv3.
Requirements:
The first step is to clone the repository:
git clone https://github.com/streetwriters/notesnook-sync-server.git
# change directory
cd notesnook-sync-serverOnce you are inside the ./notesnook-sync-server directory, run:
# this might take a while to complete
dotnet restore Notesnook.slnThen build all projects:
dotnet build Notesnook.slnTo run the Notesnook.API project:
dotnet run --project Notesnook.API/Notesnook.API.csprojTo run the Streetwriters.Messenger project:
dotnet run --project Streetwriters.Messenger/Streetwriters.Messenger.csprojTo run the Streetwriters.Identity project:
dotnet run --project Streetwriters.Identity/Streetwriters.Identity.csprojThe sync server can easily be started using Docker.
Download docker-compose.yml and .env:
wget https://raw.githubusercontent.com/streetwriters/notesnook-sync-server/master/docker-compose.yml
wget https://raw.githubusercontent.com/streetwriters/notesnook-sync-server/master/.envEdit .env and set at least NOTESNOOK_API_SECRET. See .env for all configuration options.
Then start the stack:
docker compose upThis sets up MongoDB, MinIO, and the Notesnook services.
Optional services (themes-server, cors-proxy, inbox-api): docker compose --profile extras up
For external MongoDB, MinIO, or Garage deployments, see examples/.
Note: Self-hosting the Notesnook Sync Server is now possible, but without support. Documentation will be provided at a later date. We are working to enable full on-premise self-hosting, so stay tuned!
…No open issues yet, or sync has not completed.