dacr / primes-server-akkahttp   1.0.6

GitHub

primes http service with API

Scala versions: 2.13

Primes server tests License

It has been deployed on https://mapland.fr/primes

Quick local start

Thanks to coursier from @alxarchambault, this application is quite easy to start, just execute :

cs launch fr.janalyse::primes-server-akkahttp:1.0.5

Configuration

Environment variable Description default value
PRIMES_LISTEN_IP Listening network interface "0.0.0.0"
PRIMES_LISTEN_PORT Listening port 8080
PRIMES_PREFIX Add a prefix to all defined routes ""
PRIMES_URL How this service is known from outside "http://127.0.0.1:8080"
PRIMES_STORE_PATH Where data is stored "/tmp/primes-data"
PRIMES_MAX_COUNT How many primes to compute in background (BigInt) 500000000
PRIMES_MAX_LIMIT Stop primes background compute after this value 9223372036854775807