Skip to content

My preferred technologies stack for building web apps

Notifications You must be signed in to change notification settings

wmcmurray/boilerplate-webapp

Repository files navigation

boilerplate-webapp

Language grade: JavaScript

Built with

Database : Sequelize + Umzug (or Mongoose)

Backend : NodeJS, ExpressJS, Pug

Frontend : Webpack 4, VueJS 2, VueX, SCSS, gridlex

API : Hapi, Boom, Joi


Installation

Basic (required)

  1. Run npm install && npm run prod
  2. Copy /config/default-sample.js to /config/default.js and check settings

Setup Sequelize database (optional)

  1. Make sure you have Postgres, MySQL or SQLite installed
  2. Run npm run init-sequelize
  3. Open /config/base.js and set database_object_modeling: 'sequelize'

Setup Mongoose database (optional)

  1. Make sure you have MongoDB installed
  2. Run npm run init-mongoose
  3. Open /config/base.js and set database_object_modeling: 'mongoose'

Run

  • npm start (or pm2 start pm2.config.js)

Develop

  • npm run dev will compile frontend assets in realtime
  • npm run prod will compile frontend assets for production

Database migrations

  • npm run migrate:up apply all pending migrations
  • npm run migrate:down undo last migrations batch applied
  • npm run migrate:new sample creating a new migration named "sample"

Examples

Some projects using this boilerplate in production environment :

About

My preferred technologies stack for building web apps

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published