https://github.com/le0pard/js-api-service
Elixir Web API to execute JavaScript code
https://github.com/le0pard/js-api-service
Last synced: about 1 year ago
JSON representation
Elixir Web API to execute JavaScript code
- Host: GitHub
- URL: https://github.com/le0pard/js-api-service
- Owner: le0pard
- Created: 2014-07-15T21:52:52.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-11-03T17:32:36.000Z (over 10 years ago)
- Last Synced: 2025-02-15T20:15:48.738Z (about 1 year ago)
- Language: CSS
- Size: 375 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JsApiService
To start your new Phoenix application:
1. Install dependencies with `mix deps.get`
2. Start Phoenix endpoint with `mix phoenix.server`
Now you can visit `localhost:4000` from your browser.
## Test JS engine
```bash
$ curl -X POST -d "function=return _.map(JSON.parse(data), function(num){ return num * 25; });&data=[1,2,3,5,6,7,8,9,10]" http://127.0.0.1:4000/run
"{\"status\":\"ok\",\"result\":[25,50,75,125,150,175,200,225,250]}"
```