A fast โฉ, simple Node.js/Express + MongoDB + Vue.js web app boilerplate project. This template provides a set of best-practice setups and avoids common mistakes. Hopefully useful for hackathons... ๐ โก
$ git clone https://github.com/cktang88/express-boilerplate
$ cd express-boilerplate
$ npm i --dev
$ npm start
Then go visit http://localhost:8000
- Express - Web framework for Node.js
- MongoDB - Database for fast prototyping
- Bunyan - Easy JSON logging.
- Vue.js
- Spectre.css - lightweight CSS-only framework that uses native HTML tags. A third the size of Bulma.css, a quarter the size of Bootstrap css.
- Eslint - Javascript linting
- node-fetch - server-side HTTP requests using browser
window.fetch()
api - Security via CORS and Helmet.js
- node-dev - Automatic server reload
- Fast - get up and running immediately.
- Simple, zero-config - no need to manually set up config files.
- Lightweight, no module bloat - total node_modules size is just 20MB.
.
โโโ logs // where logs get stored
โโโ public
โ โโโ domhelpers.js // for DOM manipulation, mimics jQuery
โ โโโ index.html
โ โโโ index.js
โโโ server
โ โโโ dbManager.js // interacting with MongoDB
โ โโโ logger.js // simple logging functionality
โ โโโ server.js // main Express server
โโโ tests // put tests in here
Code linting with AirBnB's style guide:
$ npm run lint
This work is licensed under the The MIT License