Tote is an Azure Functions starter kit.
- TypeScript for writing code
- Webpack for bundling
- Prettier for code formatting
yarn
to install dependenciesyarn start
to fire up Docker and Webpack- Open http://localhost:7071/api/hello in your browser or REST client
If you plan to use multiple instances of this project locally, rename the containers in docker-compose.yml
.
To create a function, duplicate the ./src/hello
directory, rename to what you want, and add an export in ./src/index.ts
.
You also need to update ./src/newFunc/function.json
with the new entrypoint
and perhaps methods
to refect what kind of function it is.
Create a .env
file at the project root and add your config there. You will have to restart Docker for the changes to reflect.
Look at the docs for tote-lib
to find out more options about the Func
class.