Socket
Socket
Sign inDemoInstall

vaxic-bpgen

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vaxic-bpgen

Generate boilerplate Vaxic workspaces in seconds.


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

vaxic-bpgen

Generate boilerplate Vaxic workspaces in seconds

Installation

[sudo] npm i -g vaxic-bpgen

Usage

vaxic-bpgen [endpoints...] [-async]

endpoints - a list of endpoints that should be created (ex. assignments, calenders, etc.)

-async - makes the handlers async functions

Examples

vaxic-bpgen assignments calendars -async

Generates the file:

const Vaxic = require('Vaxic')
const app = new Vaxic()
	
app.add('GET', '/api/assignments', async (req, res) => {
	
})

app.add('POST', '/api/assignments', async (req, res) => {
	
})

app.add('PUT', '/api/assignments', async (req, res) => {
	
})

app.add('DELETE', '/api/assignments', async (req, res) => {
	
})

app.add('GET', '/api/calendars', async (req, res) => {
	
})

app.add('POST', '/api/calendars', async (req, res) => {
	
})

app.add('PUT', '/api/calendars', async (req, res) => {
	
})

app.add('DELETE', '/api/calendars', async (req, res) => {
	
})

vaxic-bpgen models dailyRewards

Generates the file:

const Vaxic = require('Vaxic')
const app = new Vaxic()
	
app.add('GET', '/api/models', (req, res) => {
	
})

app.add('POST', '/api/models', (req, res) => {
	
})

app.add('PUT', '/api/models', (req, res) => {
	
})

app.add('DELETE', '/api/models', (req, res) => {
	
})

app.add('GET', '/api/dailyRewards', (req, res) => {
	
})

app.add('POST', '/api/dailyRewards', (req, res) => {
	
})

app.add('PUT', '/api/dailyRewards', (req, res) => {
	
})

app.add('DELETE', '/api/dailyRewards', (req, res) => {
	
})

Keywords

FAQs

Last updated on 05 Jan 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc