This example demonstrates how to implement pagination on the backend using PrimeVue's DataTable component.
- Clone the repository:
git clone https://github.com/YannisJustine/primevue-example.git
cd primevue-example
- Run the backend:
In this example, we use a simple Node.js/Express backend to serve paginated data. You can find the backend code in the api directory.
cd api
npm install
npm start
The server will start on http://localhost:3000.
- Run the frontend app:
After starting the backend server, return to the front project directory and start the Vue.js app.
Copier le code
cd front
npm install
npm run dev
The Vue.js app will run on http://localhost:5173.