Vehicle Logbook API written in Rust, built with axum.
- Install Rust
- Install Just
- Run
just bootstrapto initialize project and install other dev dependencies
After installing dev dependencies and initializing the project, run the following to build and execute the app:
just rSee other helpful dev commands by inspecting the justfile or by running just with no other arguments.
For convenience, a DevContainer configuration has been provided. Run in VSCode using the Dev Containers Extension.
On first launch, dev dependencies will automatically be installed via just bootstrap as described above.
See here for more information on configuring Dev Containers in VSCode.
Initialize a configuration file using the following command (substituting your own values for any tokens wrapped in {{}}):
just r -- --init-config > {{your-yaml-config-path}}
Run the server using this configuration file by setting the appropriate environment variable to point at this file:
export CONFIG_FILE={{your-yaml-config-path}}
just r
Note that any configuration parameter understood by the config file can be overridden by environment variables using the prefix VL__. Structured config heirarchy is denoted using _. For example:
server.portcan be overridden by settingVL__SERVER_PORTdatabase.urlcan be overridden by settingVL__DATABASE_URL
Changelog generation is performed via git-cliff, by parsing conventional commit messages.
Please ensure commits follow the conventional commit format in order for them to be included in changelogs.