Simple boilerplate for MEVN applications
- Ensure you already have node & npm installed.
- If you're on a Mac - Install Mongodb via homebrew, If PC - You're on your own. I encourage you to use the MongoDB GUI
- Update homebrew
brew update
- Install mongodb
brew install mongodb
- Add the directory for the database to live in
sudo mkdir -p /data/db
- Make the directory owned by your user & read/write
cd /data/db && chown {username} ./ && chmod 755 ./
- Run the server
mongod
- Run
npm install
to install all the dependencies. - Install global dependencies
npm i -g vue-cli vue-devtools mongodb babel nodemon concurrently
- Start Mongo in a new terminal window
mongod
- Run the task to rule them all
npm run start
There's already an alias in the vue.config.js
file that allows you to point to files in the /scss/
directory using $styles
. I've also included a Sass file for you to add stuff to. It will be bundled during the webpack build and be included in your site-wide app.css
file. I've also included Bootstrap's 'bootstrap-reboot.scss' file from the node_module using the node module alias ~
.
- Run the production build task
npm run build