Example of manually integrating Vue that showcases many features.
Note
For creating a new Vike app, we recommend using Bati instead of copying this example. Because this example uses a custom Vue integration instead of using vike-vue
which we generally don't recommend.
For a simpler example, check out /examples/vue-minimal/.
Features:
- Client Routing (+ usage of
navigate()
) - Data Fetching (server-side fetching + isomorphic fetching)
- Pre-rendering (+ usage of the
onBeforePrerenderStart()
hook) - Route Function
- TypeScript
- Markdown
- Error Page
- Active Links
- Access
pageContext
from any Vue component - HTML streaming
git clone git@github.com:vikejs/vike
cd vike/examples/vue-full/
npm install
npm run dev