An example of a basic setup of vue.js, vuex and nodejs with maybe npm addons with mocha and chai.
This app is a basic starting app with vue.js and node.js working with a MySql server to manage users in the database. This is a great project for anyone to use to get started with vue!
- node.js and NPM
- vue.js npm command:
npm install -g @vue/cli
- MySql database server
- visual code (optional)
database: nodetest table: users
columns:
- user_id
- lastName
- firstName
- age
For windows it's easy, click on the run_all.bat, if not make sure to run the server first then the client batch files.
Make sure you open the terminal and set your current directory to the root directory of this project. You will need two terminals, one for the node server and the other for running vue (command one and command two).
Server command: node "vue-nodejs\api\server.js"
for the second command make sure your terminal is in the folder directory: cd "vue-nodejs"
Client Commands: npm run build
then npm run serve --fix