New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

zamzon

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zamzon

zamzon CLI

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

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/

FAQs

Package last updated on 23 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts