Name: apertium-stats-service
Owner: Apertium
Description: Stateful Rust web service that enables the efficient concurrent compilation and distribution of statistics regarding Apertium packages via a RESTful API.
Created: 2018-03-11 07:08:11.0
Updated: 2018-05-08 00:10:41.0
Pushed: 2018-05-11 20:59:11.0
Size: 318
Language: Rust
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Stateful Rust web service that enables the efficient concurrent compilation and distribution of statistics regarding Apertium packages via a RESTful API.
See api.html
for the Swagger UI representation of the OpenAPI 3.0 spec.
Build with cargo build
and run with cargo run
.
Edit .env
to set environment parameters including those that control
Rocket configuration.
Use cargo build --release
to create production binaries or use the
provided Dockerfile
:
docker build -t apertium-stats-service .
docker run -t -p 8000:8000 apertium-stats-service # or 80 for staging/prod
Run cargo fmt
to format code, cargo clippy
to check for lint and
cargo test
to run tests.