This is a survey poll web app built with React, Prisma, PostgreSQL, Node.js, Express, Zod for validation, and Tailwind CSS.
- Create Survey Polls: Users can create survey polls.
- Vote on Polls: Users can vote on published survey polls.
- Single Vote Limit: Users can only vote once on each question and survey.
- Frontend: React
- Backend: Node.js, Express
- Database: PostgreSQL
- ORM: Prisma
- Validation: Zod
- Styling: Tailwind CSS
-
Clone the repository:
git clone https://github.com/prvn347/survey_poll.git
-
Install dependencies:
cd survey_poll npm install
-
Set up the database: Create a PostgreSQL database Update the connection URL in the Prisma schema file (schema.prisma)
npx prisma migrate dev
-
Start the server
npm run dev