Skip to content

Instantly share code, notes, and snippets.

@tidalgo22
Created July 30, 2018 08:07
Show Gist options
  • Save tidalgo22/537577b24d05f31d57b5e9f9513ce966 to your computer and use it in GitHub Desktop.
Save tidalgo22/537577b24d05f31d57b5e9f9513ce966 to your computer and use it in GitHub Desktop.
Get started with Vuejs and Expressjs with this guidelines
First make your repo and pull it.
Lets get started:
we need to install vue cli https://github.com/vuejs/vue-cli/tree/v2#vue-cli--
npm install -g vue-cli
Then create our project,
vue init webpack my-project //client on my case
Questions will be prompt just answer it with yes.
Once setup is done.
Go to the client folder and run npm install we need the client side dependencies.
Once done go ahead and commit then push the changes to the repo.
Next lets create server folder on the root folder and run
npm init -f //this will force create a package.json file
npm install --save [email protected] [email protected] //version are added since the latest one got an issues with my node version.
nodemon is a tool that helps develop node.js based applications by automatically restarting the node application when file changes in the directory are detected.
ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code.
Configure npm like:
{
"name": "server",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "./node_modules/nodemon/bin/nodemon.js src/app.js; npm run lint; node",
"lint": "./node_modules/.bin/eslint **/*.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"eslint": "^5.2.0",
"nodemon": "^1.11.0"
}
}
Ref: https://www.youtube.com/watch?v=Fa4cRMaTDUI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment