mevn-github-auth

0.0.3 • Public • Published

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=3000
MONGO_URI=mongodb://127.0.0.1:27017/voting-app
GITHUB_ID=233245n234566kjh243f
GITHUB_SECRET=k2hj432kjgjkh2g34kj2g4jkh23g4jk2342jhg34
APP_URL=http://127.0.0.1:3000/

After that execute the following:

# clone the repo
git clone https://github.com/antonderegt/mevn-github-auth.git
 
# install dependencies
npm install
 
# build and watch for changes
npm run serve
 
# run MongoDB
mongod
 
# run in a seperate terminal to serve at localhost:3000
nodemon server.js
 
# build for production with minification
npm run build

Keywords

none

Install

DownloadsWeekly Downloads

3

Version

0.0.3

License

none

Last publish

Collaborators

  • antonderegt