Skip to content

LoyolaChicagoCode/primenumbers-spray-scala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status codecov Codacy Badge

Stories in Ready Issue Stats Issue Stats Average time to resolve an issue Percentage of issues still open

Learning Objectives

  • Show how CPU-intensive computation can be off-loaded from a mobile app to the cloud, by comparison to a mobile device, an unlimited resource for computation and storage.

  • End-to-end example of continuous integration (CI), continuous deployment/delivery (CD), and DevOps in Scala.

See also the corresponding mobile app.

How to use

Test with

$ sbt test

Run with

$ sbt run

or

$ sbt stage
$ foreman start

or deploy to a foreman-compatible APaaS provider, such as Heroku.

Then, http://host/n returns

  • 200 OK if n is prime
  • 404 Not Found otherwise

Sample prime numbers to try

Sample non-prime numbers to try

References

About

Simple Scala/spray-based web service for prime number checking. DEPRECATED in favor of https://github.com/loyolachicagocode/primenumbers-http4s-scala

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published