Azure Functions + PureScript
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)
How to build and run locally
bower installto restore PureScript dependencies
npm installto restore development dependencies
npm run buildto build application
func host startto 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.
npm run packageto package application into
- Use one of the Zip Deployment methods described in https://docs.microsoft.com/en-us/azure/azure-functions/deployment-zip-push