├── .gitignore ├── app.js ├── client ├── .gitignore ├── README.md ├── babel.config.js ├── package-lock.json ├── package.json ├── public │ ├── favicon.ico │ └── index.html └── src │ ├── App.vue │ ├── Warehouse │ └── Auth.js │ ├── assets │ └── logo.png │ ├── components │ ├── Errors.vue │ └── Navbar.vue │ ├── main.js │ ├── router.js │ ├── store.js │ └── views │ ├── About.vue │ ├── Home.vue │ ├── Login.vue │ ├── Profile.vue │ └── Register.vue ├── config ├── keys.js └── passport.js ├── model └── User.js ├── package-lock.json ├── package.json ├── public ├── css │ ├── app.cc66d433.css │ ├── chunk-50dbd120.44eb6ffb.css │ └── chunk-be1b00fe.44eb6ffb.css ├── favicon.ico ├── index.html └── js │ ├── app.56e932ed.js │ ├── app.56e932ed.js.map │ ├── chunk-2d217357.497b1559.js │ ├── chunk-2d217357.497b1559.js.map │ ├── chunk-2d22d746.75abd684.js │ ├── chunk-2d22d746.75abd684.js.map │ ├── chunk-50dbd120.c8c862fc.js │ ├── chunk-50dbd120.c8c862fc.js.map │ ├── chunk-be1b00fe.50d23b1b.js │ ├── chunk-be1b00fe.50d23b1b.js.map │ ├── chunk-vendors.f7721575.js │ └── chunk-vendors.f7721575.js.map └── routes └── api └── users.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const mongoose = require('mongoose'); 3 | const bodyParser = require('body-parser'); 4 | const path = require('path'); 5 | const cors = require('cors'); 6 | const passport = require('passport'); 7 | 8 | // Initialize the app 9 | const app = express(); 10 | 11 | // Middlewares 12 | // Form Data Middleware 13 | app.use(bodyParser.urlencoded({ 14 | extended: false 15 | })); 16 | 17 | // Json Body Middleware 18 | app.use(bodyParser.json()); 19 | 20 | // Cors Middleware 21 | app.use(cors()); 22 | 23 | // Seting up the static directory 24 | app.use(express.static(path.join(__dirname, 'public'))); 25 | 26 | // Use the passport Middleware 27 | app.use(passport.initialize()); 28 | // Bring in the Passport Strategy 29 | require('./config/passport')(passport); 30 | 31 | // Bring in the Database Config and connect with the database 32 | const db = require('./config/keys').mongoURI; 33 | mongoose.connect(db, { 34 | useNewUrlParser: true 35 | }).then(() => { 36 | console.log(`Database connected successfully ${db}`) 37 | }).catch(err => { 38 | console.log(`Unable to connect with the database ${err}`) 39 | }); 40 | 41 | // app.get('/', (req, res) => { 42 | // return res.send("
We are happy to help you in learning the projects.
7 | Business Email: mauryanarendra09@gmail.com 8 |Simple authentication application built with MEVN Stack using Express, Node.js, Vue.js and MongoDB by Codebook Inc.
9 |MongoDB is a cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemata. MongoDB is developed by MongoDB Inc.
19 | More Info. 20 |Express.js, or simply Express, is a web application framework for Node.js, released as free and open-source software under the MIT License. It is designed for building web applications and APIs.
30 | More Info. 31 |Vue.js features an incrementally adoptable architecture that focuses on declarative rendering and component composition. Advanced features required for complex applications such as routing...
41 | More Info. 42 |As an asynchronous event driven JavaScript runtime, Node is designed to build scalable network applications. In the following "hello world" example, many connections can be handled concurrently.
52 | More Info. 53 |Simple authentication application built with MEVN Stack using Express, Node.js, Vue.js and MongoDB by Codebook Inc.
\nMongoDB is a cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemata. MongoDB is developed by MongoDB Inc.
\n More Info.\nExpress.js, or simply Express, is a web application framework for Node.js, released as free and open-source software under the MIT License. It is designed for building web applications and APIs.
\n More Info.\nVue.js features an incrementally adoptable architecture that focuses on declarative rendering and component composition. Advanced features required for complex applications such as routing...
\n More Info.\nAs an asynchronous event driven JavaScript runtime, Node is designed to build scalable network applications. In the following \"hello world\" example, many connections can be handled concurrently.
\n More Info.\n