apertium/apertium-stats-service

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

Homepage:

Size: 318

Language: Rust

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Apertium Stats Service

Build Status Coverage Status

Stateful Rust web service that enables the efficient concurrent compilation and distribution of statistics regarding Apertium packages via a RESTful API.

Usage

See api.html for the Swagger UI representation of the OpenAPI 3.0 spec.

Running

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
Development

Run cargo fmt to format code, cargo clippy to check for lint and cargo test to run tests.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.