Skip to content

louweal/trusense

Repository files navigation

TruSense

Real-time temperature, humidity and air pressure monitoring immutably stored on Hedera; ensuring full transparency and trust.

Team

Installation

  1. Clone and install dependencies
npm i
  1. Set environment variables
HEDERA_NETWORK="testnet"
NODE_ENV="development"
DATABASE_URL="postgresql://..."
JWT_SECRET="<just put a random string here>"
  1. Push schema to database
npx prisma db push
  1. Start the development server
npm run dev

The application will be available at http://localhost:3000

📁 Project Structure

├── assets/css/          # Global styles
├── components/          # Vue components
├── composables/         # Vue composables
├── lib/                 # Utilities and services
├── middleware/          # Nuxt middleware
├── pages/               # File-based routing
├── prisma/              # Database schema
├── public/              # Public files
├── sensor/              # Sensor code (for reference)
├── server/api/          # API routes
├── app.vue              # Root component
└── nuxt.config.ts       # Nuxt configuration