Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dvarelap/peregrine
Async lightweight Scala web framework
https://github.com/dvarelap/peregrine
async framework scala web
Last synced: 25 days ago
JSON representation
Async lightweight Scala web framework
- Host: GitHub
- URL: https://github.com/dvarelap/peregrine
- Owner: dvarelap
- License: apache-2.0
- Created: 2015-05-19T02:13:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-10-29T00:43:11.000Z (about 5 years ago)
- Last Synced: 2024-08-04T00:05:57.885Z (4 months ago)
- Topics: async, framework, scala, web
- Language: Scala
- Homepage:
- Size: 992 KB
- Stars: 14
- Watchers: 4
- Forks: 4
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-scala - peregrine - activity/y/dvarelap/peregrine) (Table of Contents / Web Frameworks)
README
# peregrine
[![Join the chat at https://gitter.im/dvarelap/peregrine](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/dvarelap/peregrine?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://travis-ci.org/dvarelap/peregrine.svg)](https://travis-ci.org/dvarelap/peregrine)
[![Bintray](https://img.shields.io/bintray/v/dvarelap/maven/peregrine.svg)]()Minimal app:
```scala
import io.peregrine._object WebApp extends PeregrineApp {
get("/hi") { req =>
"Hello World!"
}
}
```Install dependency in `build.sbt` file:
```scala
scalaVersion := "2.11.7"
resolvers += "Twitter" at "http://maven.twttr.com"
resolvers += "bintray" at "https://dl.bintray.com/dvarelap/maven"
libraryDependencies += "com.github.dvarelap" %% "peregrine" % "1.2.2"
```And run with:
```batch
$ sbt run
```View at: [http://localhost:5000/hi](http://localhost:5000/hi)
## Full Documentation
See full documentation [here](docs.md)**Note** Peregrine works only with scala version 2.11+
## Licence
Copyright 2015 Daniel Varela and other contributors.Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0