Dnote is an open source project.
The CLI and server are single single binary files with SQLite embedded - no databases to install, no containers to run, no VMs required.
Prerequisites
Quick Start
- Clone the repository
- Install dependencies:
make install
- Start developing! Run tests:
Or start the dev server:
make testmake dev-server
That's it. You're ready to contribute.
# Start dev server (runs on localhost:3001)
make dev-server
# Run tests
make test-api
# Run tests in watch mode
WATCH=true make test-api# Run tests
make test-cli
# Build dev version (places in your PATH)
make debug=true build-cli
# Build production version for all platforms
make version=v0.1.0 build-cli
# Build for a specific platform
# Note: You cannot cross-compile using this method because Dnote uses CGO
# and requires the OS specific headers.
GOOS=[insert OS] GOARCH=[insert arch] make version=v0.1.0 build-cli
# Debug mode
DNOTE_DEBUG=1 dnote sync