MEVN Boilerplate (with GitHub authentication)
MEVN means it contains MongoDB, ExpressJS, VueJS and NodeJS it is based on vue cli (webpack-simple template). Mongoose runs on top of MongoDB. How to install MongoDB on Windows
It uses PassportJS to authenticate a user with GitHub. MEVN Boilerplate without PassportJS
How to start
Add a .env file with your PORT, MONGO_URI, GITHUB_ID, GITHUB_SECRET and APP_URL like this:
PORT=3000MONGO_URI=mongodb://127.0.0.1:27017/voting-appGITHUB_ID=233245n234566kjh243fGITHUB_SECRET=k2hj432kjgjkh2g34kj2g4jkh23g4jk2342jhg34APP_URL=http://127.0.0.1:3000/
After that execute the following:
# clone the repogit clone https://github.com/antonderegt/mevn-github-auth.git# install dependenciesnpm install# build and watch for changesnpm run serve# run MongoDBmongod# run in a seperate terminal to serve at localhost:3000nodemon server.js# build for production with minificationnpm run build