zamzon
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Twitter Follow

Zamzon

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.

Quick Start

yarn global add zamzon
zamzon init ProjectName
cd ProjectName
zamzon g scaffold Todo
zamzon start or yarn dev:lambda

Commands

init

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.

generate

Generate functions:

scaffold

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.

route

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

start

zamzon start

Runs the server in dev mode. Must be in the root of the directory of your project.

You can access your functions at /.netlify/functions/

Readme

Keywords

none

Package Sidebar

Install

npm i zamzon

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

43.7 kB

Total Files

27

Last publish

Collaborators

  • dillonraphael