From b588843b5d99ea588b9909e463cd1867e4d31b1e Mon Sep 17 00:00:00 2001 From: Johnson Chen Date: Mon, 13 May 2024 14:42:17 +0800 Subject: [PATCH] docs: add installation and update readme --- README.md | 33 +++++++------- app/app.vue | 21 ++------- app/components/content/Contract.vue | 4 +- app/content/examples/contract.md | 2 +- app/content/installation.md | 71 +++++++++++++++++++++++++++++ app/core/sidebar.ts | 11 +++++ 6 files changed, 107 insertions(+), 35 deletions(-) create mode 100644 app/content/installation.md diff --git a/README.md b/README.md index dd97912..46f30a2 100644 --- a/README.md +++ b/README.md @@ -45,10 +45,7 @@ Vue Dapp Overview - -## Getting Started - -### SPA with Vite +## Installation ```bash npm install pinia @vue-dapp/core @vue-dapp/modal @@ -59,6 +56,18 @@ import { createPinia } from 'pinia' app.use(createPinia()) ``` +### Nuxt + +```bash +npm install pinia @pinia/nuxt @vue-dapp/core @vue-dapp/nuxt @vue-dapp/modal +``` + +```ts +modules: ['@pinia/nuxt', '@vue-dapp/nuxt'] +``` + +## Getting Started + ```vue