New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

generator-express-sequelize

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-express-sequelize

A Yeoman generator for Express + Sequelize. Based heavily on [generator-angular-express-sequelize](https://github.com/rayokota/generator-angular-express-sequelize)

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

The Express-Sequelize generator

This project is a fork from generator-angular-express-sequelize.

A Yeoman generator for Express with Sequelize.

Express is a Javascript-based micro-framework.

Installation

Install Git and node.js. The development mode also requires SQLite.

Install Yeoman:

npm install -g yo

Install the Express-Sequelize generator:

npm install -g generator-express-sequelize

Creating an Express service

In a new directory, generate the service:

yo express-sequelize

Run the service:

node app.js

Your service will run at http://localhost:3000.

Creating a persistent entity

Generate the entity:

yo express-sequelize:entity [myentity]

You will be asked to specify attributes for the entity, where each attribute has the following:

  • a name
  • a type (String, Integer, Float, Boolean, Date, Enum)
  • for a String attribute, an optional minimum and maximum length
  • for a numeric attribute, an optional minimum and maximum value
  • for a Date attribute, an optional constraint to either past values or future values
  • for an Enum attribute, a list of enumerated values
  • whether the attribute is required

Files that are regenerated will appear as conflicts. Allow the generator to overwrite these files as long as no custom changes have been made.

Run the service:

node app.js

Keywords

FAQs

Package last updated on 23 Feb 2014

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc