A MVC example project with NodeJS and MongoDB backend serving pure vanilla js as frontend.
If you've never used NodeJS, MongoDB or Yarn before, you'll need to install them. If you use homebrew, just run:
brew install node
brew install mongodb
brew install yarn
Otherwise, you can download and install them manually
yarn
This runs through all dependencies listed in yarn.lock
and installs them locally within the project.
mongod
yarn dev
This will start mongoDB server and compile your assets and serve them over browser-sync with webpack-dev-middleware and webpack-hot-middleware, proxied through the domain specified in host.js.
http://localhost:3000
http://localhost:8080
yarn build
This will build without minify and hashing assets.
yarn production
This will minify and hash all assets etc.
This repo includes a test suite running Jest.
To run the tests simply run:
yarn test
This repo follows the airbnb javascript coding style guide. It also includes some default editor settings using editor config.