- It uses digital certificates to verify the identity of the voter.
- It uses blockchain token to store the votes.
Important
The project uses Turbo to manage monorepo. The ui package inside /packages/ui/
uses Tailwind css and Shadcn/ui, so you can make any component in this package and just export that in the index.ts file. Your can see the existing components as reference.
Step-1: In root dir /
run these commands
yarn install
Step-2.1: In dir /packages/prismadb/
run these commands
1. docker compose up -d
2. cp .env-example .env
3. npx prisma migrate dev --name init
4. npx prisma generate
Step-2.2: In dir /packages/prismadb/
run these commands
Important
NOTE: edit the /packages/prismadb/prisma/seed/seed.ts file accordingly before running below command
npx prisma db seed
Step-3: In dir /apps/votingsystem/
run these commands
Important
NOTE: add values to env file accordingly
cp .env-example .env
Step-4: In root dir /
run these commands
yarn dev
Tip
if you do not update files in /packages frequently than you can run yarn dev
in /apps/votingsystem/ only and if you change files in /packages/ run yarn build
once in that package and you are good to go.
Using yarn dev
in root dir /
is resource consuming so you can run yarn dev
only in the packages whose files are continuously changing. for Eg. in /packages/ui/
and obviously in /apps/votingsystem/