Skip to content

Simple Application with Basic VueJs setup and demonstrating use of components and communication between them

License

Notifications You must be signed in to change notification settings

aditya-sridhar/simple-vuejs-app

Repository files navigation

simple-vue-app

What is the use of this Repo Generic badge

This Repo demonstrates the use of the following in vuejs

  1. Vue Routing
  2. Components
  3. Communication between Components ( Parent to child component )
  4. Axios Library to make HTTP calls

Application Live URL Generic badge

The Application is deployed in

Prerequisites

Install NodeJS Generic badge

Refer https://nodejs.org/en/ to install NodeJS

Install Vue Cli Generic badge

Install Vue Cli Node Package Globally using the following Command.

npm install -g @vue/cli

Cloning and Running the Application

Clone the application to local

Go into the project Folder and install the npm packages using the following command

npm install

Run the following command to run the application

npm run serve

The Application runs on localhost:8080

Application Design

Views and components

Customers : This View Displays a list of customers and gets the data from a json from assets folder

CustomerDetails : This View Displays the Details of a single customer and gets the data from a json from assets Folder

Display : Display component displays the name of the selected customer in Customers View. Display is a child component of Customers View

Http Library Generic badge

axios library is used to make http calls

Routing

The Application has 2 endpoints

/customers : The ties to Customers View

/customerdetails : This ties to CustomerDetails View

References

VueJS : https://vuejs.org/v2/guide/

vue cli : https://cli.vuejs.org/guide/

axios : https://www.npmjs.com/package/axios

vue bootstrap : https://bootstrap-vue.js.org/docs

vue router : https://router.vuejs.org/guide/

About

Simple Application with Basic VueJs setup and demonstrating use of components and communication between them

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published