Mojo
Project layout
Package declarations are consolidated in package.mojo. Sources live in mojo/;
Go, Java, Markdown, OpenAPI, and Protobuf outputs share the root go/, java/,
document/, openapi/, and protobuf/ directories. From go/, use
go run ./cmd/mojo build -t api .. for all declared packages, or
go run ./cmd/mojo build -t go ../mojo/core for one package.
Regenerating the core libraries
From go/, run go run ./cmd/mojo bootstrap to regenerate Go, Java, Protobuf,
Markdown documentation, and OpenAPI definitions, then rebuild the CLI.
Use go run ./cmd/mojo bootstrap -t java to update the shared Java library,
or -t go,java to regenerate both languages. See the Java build guide.
See the bootstrap guide for the source layout, outputs, and single-package builds.
Use mojo build -t api,service . to generate backend services and entity CRUD
models under service-go/pkg/model. See the entity model guide
for primary keys, database initialization, and generated operations.
What can do
- Code generator
- Database quey language for relational, document and graph database (inspired by the RQL of the Rethink_d_b)
- Script for data process