A Vue.js application for viewing and filtering cricket players. Utilizes Vue Router for navigation and Axios for fetching player data. Features include a home page, player list with search and filter options, and responsive design.
A Vue.js application to display and filter a list of cricket players. This project utilizes Vue.js for the frontend and Vue Router for navigation, with Axios used to fetch player data from a JSON file.
This application features:
main.js
: The entry point of the application, initializing Vue, setting up the router, and mounting the app.App.vue
: The root component of the application.router/index.js
: Contains the route configuration for the application.services/playerService.js
: Provides a function to fetch player data using Axios.components/HelloWorld.vue
: Displays the home page with a button to navigate to the player list.components/PlayerList.vue
: Displays the list of players with filtering and searching capabilities.vue
: ^2.6.10vue-router
: ^2.8.1axios
: ^0.21.1Clone the repository:
git clone https://github.com/aniketparate/Player-VueJS-app.git
cd player-vuejs-app
Install the dependencies:
npm install
Start the development server:
npm run serve
This will start the development server and you can view the application in your browser at http://localhost:8080
.
http://localhost:8080
to see the home page.http://localhost:8080/players
.To build the project for production, run:
npm run build
To lint the project, run:
npm run lint
This project is licensed under the MIT License - see the LICENSE file for details.