Template for the Serverless Framework Nim language plugin.
- NodeJS
- Serverless Framework
- AWS account and IAM user (see instructions)
- either a Nim or Docker installation
- Create a new service using this template:
serverless create --template-url https://github.com/epiphone/serverless-nim-template --path my-service-path --name my-service
- Install npm dependencies (basically just the
serveless-nim
plugin itself):
cd my-service-path
yarn install # or npm install
- Deploy service:
serverless deploy
That's it! Now we can invoke functions, either on the cloud or locally:
serverless invoke -f hello
serverless invoke local -f hello --context {} --data {}
serverless remove
Check the serverless-nim plugin docs for more on Dockerized builds and other configuration matters.