Sample App build with VueJs, ExpressJs, MongoDb and NodeJs
https://vuejs.org/v2/guide/index.html https://vuejs.org/v2/api/ https://router.vuejs.org https://vuex.vuejs.org
To create Web application (Client Application)
https://cli.vuejs.org/guide/#components-of-the-system
npm install -g @vue/cli [here -g means install globally]
vue create name-application [no capital letter]
go through the option (manual process)
run application by: npm run serve
To create Web Application (Server Application) https://expressjs.com npm install express --save
For compling new JavaScript Syntax (ES6) to old JavaScript (ES5)
https://babeljs.io https://babeljs.io/docs/en/usage [follow what ever there....]
npm install --save-dev @babel/core @babel/cli @babel/preset-env npm install --save @babel/polyfill
npm install bootstrap --save npm install jquery popper.js --save
Please check package.json, we have scripts. Basically, we need to run two applications (one client, one server).
npm install concurrently --save
And on package.json "concurrently": "concurrently "babel dev-server --out-dir prod-server --watch" "nodemon prod-server/index.js" "npm run serve" "
npm i vue bootstrap-vue bootstrap but npm instal vue bootstrap-vue
sudo mongod
var mongoose = require('mongoose'); var Schema = mongoose.Schema;
var blogSchema = new Schema({ title: String, author: String, body: String, comments: [{ body: String, date: Date }], date: { type: Date, default: Date.now }, hidden: Boolean, meta: { votes: Number, favs: Number } });
npm install jsonwebtoken --save
npm install
npm run serve
npm run build
npm run test
npm run lint