All Projects → mmhelloworld → hello-play-frege

mmhelloworld / hello-play-frege

Licence: other
A simple Play application with Frege

Programming Languages

Frege
13 projects
java
68154 projects - #9 most used programming language
scala
5932 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

#A simple Play application with Frege# This is a simple play application written in Frege to demonstrate how we can use Frege with Play.

Since Play supports Java, it is actually very easy to use the Java API from Frege even though we don't have native Play support for Frege yet. The application is basically JSON-in and JSON-out. A Frege program reads a parameter from a JSON POST request and responds with a JSON response that greets the user.

##How to run##

  1. Run activator run to compile and start the server.

  2. Then send a JSON post request. For example, with curl:

    $ curl --header "Content-type: application/json" --request POST --data '{"name": "Play Frege"}' http://localhost:9000/greet
    
    {"message" : "Hello, Play Frege"}
    
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].