Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

hgraph-io/hedera-voting-application

Repository files navigation

Developing

Set up

Create a new HCS topic id

  • `npx src/scripts/createTopic.ts'
  • copy generated topic id to .env.local

Hedera

  • set environment variables in .env.local
    • cp example.env .env.local

Supabase

  • Docker must be running if running supabase locally
  • supabase login: npx supabase login
  • start supabase: npx supabase start
  • see links and keys: npx supabase status

Migrations:

https://supabase.com/docs/guides/cli/managing-environments

Supabase cloud

  • npx supabase db remote commit : commit changes from supabase cloud
  • npx supabase gen types typescript --linked > src/types/supabase.ts

Local

  • apply migration / test autogenerated migration: npx supabase db reset

  • add migration from changes in ui: npx supabase db diff --use-migra -f supabase/<descriptive_name>

  • https://supabase.com/docs/guides/cli

  • npx supabase status

  • npx supabase db reset

  • src/supabase/config.toml

In local development, emails are not actually sent - rather, they are monitored, and you can view the emails that would have been sent from the web interface.

Nextjs

  • Start the local dev server: npm run dev

About

Open source voting application built on Hedera

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •