Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-herman-express

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-herman-express

Yeoman generator for a basic Node/Express app.

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Herman Express Generator

npm version

Just a Node/Express Yeoman generator for a basic Node/Express boilerplate, featuring:

  1. A component-based structure (example)
  2. Server-side Templating via Nunjucks
  3. Local Auth via Passport
  4. Knex query builder
  5. Flash Messages
  6. Tests
    • Unit
    • Integration
    • Memory Leaks (use with helper functions) via leakage
    • Istanbul for code coverage
  7. Airbnb JavaScript Linter
  8. Security

Getting Started

  1. Install Yeoman (if necessary) - npm install -g yo
  2. Install Gulp (if necessary) - npm install -g gulp
  3. Install the generator - npm install -g generator-herman-express
  4. Run - yo herman-express, go through all prompts, and then npm install
  5. Create the necessary databases
  6. Update the variables in .env
  7. Create the development and test Postgres DBs:
  8. Run development migrations:
    • knex migrate:latest --env development
  9. Run seed:
    • knex seed:run --env development
  10. Run server
    • gulp

Test

All tests:

$ npm test

Leakage tests:

$ npm run leaks

Coverage:

$ npm run coverage
$ npm run coverage-unit
$ npm run coverage-integration

New Component?

Steps for setting up a new component:

  1. Add a new component directory to "src/server/components"
  2. Add the route to src/server/routes.js
  3. Add the new views to the viewFolders array in src/server/config/main-config.js
  4. Add tests

Keywords

FAQs

Package last updated on 01 Apr 2017

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