Zamzon is a CLI tool that helps initialize projects that work with Netlify. Connect a datasource, scaffold CRUD routes and work with any static generator.
yarn global add zamzon zamzon init ProjectName cd ProjectName zamzon g scaffold Todo zamzon start or yarn dev:lambda
zamzon init <project>
Choosing a datasource:
Currently, only mongodb is supported.
There are plans to add more in the future.
Not selecting a datasource is totally acceptable.
zamzon generate scaffold Todo title:string done:boolean
When you have your datasource set to mongodb, the scaffold will make a model file, in this case named Todo. It will parse the following parameters and create a schema for you automatically.
If no datasource is set, it will skip making a model file.
zamzon generate route sendemail
Sometimes you don't need every route scaffolding supplies. So you can generate a single route. Don't use spaces or special characters. An update will come soon with validation
Runs the server in dev mode. Must be in the root of the directory of your project.
You can access your functions at