mirror of
https://github.com/dnote/dnote
synced 2026-03-14 14:35:50 +01:00
1.3 KiB
1.3 KiB
Contributing to Dnote
Dnote is an open source project.
Setting up
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.
Server
# Start dev server (runs on localhost:3000)
make dev-server
# Run tests
make test-api
# Run tests in watch mode
WATCH=true make test-api
Command Line Interface
# 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