https://github.com/plannify-truck-driver/driver-api
The truck driver API allows drivers to manage their account, workdays and documents.
https://github.com/plannify-truck-driver/driver-api
rest-api rust
Last synced: 22 days ago
JSON representation
The truck driver API allows drivers to manage their account, workdays and documents.
- Host: GitHub
- URL: https://github.com/plannify-truck-driver/driver-api
- Owner: plannify-truck-driver
- License: apache-2.0
- Created: 2025-12-04T07:59:03.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2026-03-27T07:37:06.000Z (3 months ago)
- Last Synced: 2026-03-27T07:47:42.295Z (3 months ago)
- Topics: rest-api, rust
- Language: Rust
- Homepage:
- Size: 515 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Maintainers: MAINTAINERS.md
Awesome Lists containing this project
README
# Driver API
This repository provides the Driver API, which allows truck drivers to manage their workdays, breaks, etc.
## Prerequisites
```bash
cp .env.template .env
```
Up the docker compose from [Common services](https://github.com/plannify-truck-driver/common-services)
```bash
docker compose -f ./common-services/docker-compose.yaml up -d
```
## Usage
### Running the API
```bash
RUST_LOG=info cargo run --bin api
```
### Testing
There are unit and integration tests available. The integration tests require the common services to be running and a dataset to be seeded.
```bash
PGPASSWORD=plannify_password psql -h localhost -U plannify_user -d plannify_db -f config/test-dataset.sql
cargo test
```
## Development
Before making a pull request, please ensure to generate the sqlx files for any database changes:
```bash
cargo sqlx prepare --workspace
```