Skip to content

bigbank-as/vue-cli-plugin-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-cli Express plugin

Features

  • Logging (winston & morgan)
  • helmet for security headers
  • helmet-csp for Content-Security Policies
  • Session store (redis or file-based)

Every feature is opt-in.

Environment variables

Variable Default
NODE_ENV
PORT 4000
FORMATTED_UPLOAD_LIMIT '20MB'
COOKIE_SECRET 'c00k1es3cr3t'
SESSION_TIMEOUT 3 * 60 * 1000
EXPIRATION_PROMPT_TIMEOUT 30 * 1000

TODO:

  • Add a prompt for every feature
  • Add a prompt for what to use as Express session store (file vs redis for example)
  • Remove inlining of webpack manifest chunk (see this issue)
  • Create logger helper repo/package and import+use in Express (winston & morgan)

About

Bells-and-whistles Express setup for vue-cli 3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published