This is the front-end code for explorer.web3privacy.info
Feel free to propose features, additions, or new creations.
Local installation guidelines:
- git clone https://github.com/web3privacy/explorer-app
- cd /explorer-app
- pnpm install (get pnpm, npm will also work etc)
- pnpm run dev
If you'd like to run any tests and also manipulate the data from explorer-data, I'd recommend following approach:
- git clone https://github.com/web3privacy/explorer-app
- git clone https://github.com/web3privacy/explorer-data
- cd /explorer-data
- make
Then we should update our data.get.ts file in the explorer-app directory, continue the commands as following:
- cd ..
- cd /explorer-app
- cd server/api
There's a file called: data.get.ts
And you can replace the contents with:
import fs from 'fs';
import path from 'path';
export default defineEventHandler(async () => {
// Define the path to the local JSON file
const filePath = path.join('../explorer-data/dist', 'index.json');
// Read the file asynchronously
const data = await fs.promises.readFile(filePath, 'utf-8');
// Parse the JSON data
const jsonData = JSON.parse(data);
// Return the parsed JSON data
return jsonData;
});
After which you go back to your terminal:
- cd ../../
- pnpm install (get pnpm, npm will also work etc)
- pnpm run dev
Which will allow you to run both the data and the front end.
Features
💚 Nuxt 3 - SSR, ESR, File-based routing, components auto importing, modules, etc.
⚡️ Vite - Instant HMR.
🎨 UnoCSS - The instant on-demand atomic CSS engine.
😃 Use icons from any icon sets (Iconify) in Pure CSS, powered by UnoCSS.
🔥 The <script setup> syntax.
🍍 State Management via Pinia
📥 APIs auto importing - for Composition API, VueUse and custom composables.
🏎 Zero-config cloud functions and deploy (Cloudflare Page preset).
🦾 TypeScript, of course.
Nuxt Modules VueUse - collection of useful composition APIs. ColorMode - dark and Light mode with auto detection made easy with Nuxt. UnoCSS - the instant on-demand atomic CSS engine. Pinia - intuitive, type safe, light and flexible Store for Vue. DevTools - Unleash Nuxt Developer Experience. Vue.