Skip to content

Latest commit

 

History

History
99 lines (71 loc) · 1.66 KB

README.md

File metadata and controls

99 lines (71 loc) · 1.66 KB

A web3 Vue application to facilitate of data to and from Web3 Storage

Prerequisites

  • Node.js v18 or higher
  • NPM
  • Text Editor
  • web3.storage account
  • web3 CLI

Setup

  • Clone the repo and cd upfile-vue
  • w3 login <email account>
  • w3 space ls
  • w3 space use <space key>
  • w3 key create
  • w3 delegation create <did:key:...> --base64
  • Save the output - both key and proof - to a .env file and save it to the project root.

[!IMPORTANT] You will need to repeat this step on any device you configure to run this app. The .env file should never be committed to the repo. If you do, anyone with access to your repo will be able to access your W3.Storage account and access your files.

  • npm install
  • npm run dev

Nuxt 3 Minimal Starter

Look at the Nuxt 3 documentation to learn more.

Setup

Make sure to install the dependencies:

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install

Development Server

Start the development server on http://localhost:3000:

# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

# bun
bun run dev

Production

Build the application for production:

# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build

# bun
bun run build

Locally preview production build:

# npm
npm run preview

# pnpm
pnpm run preview

# yarn
yarn preview

# bun
bun run preview

Check out the deployment documentation for more information.