Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yamachu/scalafunctions
https://github.com/yamachu/scalafunctions
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yamachu/scalafunctions
- Owner: yamachu
- Created: 2019-01-21T09:10:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T08:11:49.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T17:47:15.247Z (about 2 months ago)
- Language: Scala
- Size: 440 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ScalaFunctions
Sample projects for running Scala and Scala.js application on Azure Functions, AWS Lambda and more...
## How to build
### Azure Functions (JVM)
```sh
$ sbt azure/assembly
# if you want to handle file changes and build
$ sbt "project azure" "~assembly"
```or use Makefile
```sh
$ make azure/build
# if you want to handle file changes and build
$ make azure/build-watch
```### Azure Functions (Node.js)
_Now, I don't prepare easy build command :(_
```sh
$ sbt scalajs/fullOptJS
# if you want to handle file changes and build
$ sbt "project scalajs" "~fullOptJS"
````scalajs/dist/handler.js` will be built.
And,```sh
$ cd azurejs
$ npx webpack
```## How to run
### Azure Functions (JVM)
Required:
* JDK 8 (func commands required 8)
* Azure Functions Core Tools```sh
$ cd azure/app
$ func host start
# if you want to debug jar by attaching process
$ func host start --language-worker -- "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
```if you can use Docker, use Docker! (recommended)
```sh
$ make docker/init # build Azure Functions Java Host
$ make docker/azure-functions
```### Azure Functions (Node.js)
_Now, I don't prepare easy run command :(_
Required:
* Node.js 8 or 10
* Azure Functions Core Tools```sh
$ cd azurejs
$ func host start
# Todo: How to debug...
```