GreenHarmony is a community-centric volunteer management platform.
We aim to affirm and recognise the contributions of volunteers and cultivate a deeply-rooted community.
We propose a digital system that streamlines the volunteering process from volunteer registration to contribution recognition. Our proposal emphasizes tracking learning outcomes based on activities and bringing the community together.
With this, we hope to tackle challenges Ground-up initiative faces.
Using the T3 stack, we implement a modern, server-side rendered application which is highly efficient and secure. TypeScript allows us to perform static type checking, allowing us to quickly and efficiently perform remote procedure calls with tRPC.
We take advantage of cloud infrastructure by deploying on Vercel. This allows us reduce request latency and achive a highly-available, horizontally-scalable, infinite-scaling application, allowing users to enjoy a seamless experience with little loading time.
We implement a passwordless login feature that allows users to login to our application through magic link. Emails are signed using a DKIM key, and is verified by the receiving mail server through a DNS TXT record to prevent our emails from being impersonated by potential attackers.
Ensure that PostgreSQL version >15 is installed locally
Configure the environment variables by creating a .env file and setting the following variables
DATABASE_URL=<"postgresql://<username>:<password>@<host>:5432/<database_name>"
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET=<random_string>
EMAIL_SERVER="smtp://<user>:<password>@<host>:<port>"
EMAIL_FROM="<from_user>@<domain>"Note:
NEXTAUTH_SECRETis used to securely encrypt cookies and hash tokens and is required in production. To generate a random string, runopenssl rand -base64 32.
npm install
npm run devCreate a database and run the following command:
npx prisma db pushThen populate the database with dummy data by running the queries located in prisma/data.sql.
Husky and Lint-staged is used to standardise the coding style with Prettier, while ESlint is used to enforce code quality and are run automatically through a pre-commit hook.
After making changes to prisma/schema.prisma, format the schema and update the database.
npx prisma format
npx prisma db pushPrisma should also run prisma generate automatically after the push operation is complete.
Note: Due to existing regressions in
zod>3.21.1, the latest version ofzodis not used.See colinhacks/zod#2184 for more information

