The sample for using PureScript and serverless Azure Functions.
- Node.JS (latest LTS or latest) and NPM (version >6)
- Azure Functions v2 Tooling - https://github.com/Azure/azure-functions-core-tools
- PureScript (
npm install -g purescript
) - PureScript tooling (Pulp + Bower) (
npm install -g pulp bower
)
- Run
bower install
to restore PureScript dependencies - Run
npm install
to restore development dependencies - Run
npm run build
to build application - Run
func host start
to start local Functions emulator and start application. If you're using VSCode you can just press F5 instead - it will start emulator, application and attach debugger to it.
- Run
npm run package
to package application intooutput.zip
- Use one of the Zip Deployment methods described in https://docs.microsoft.com/en-us/azure/azure-functions/deployment-zip-push