Our SaaS is in beta. It may contain bugs and is best suited for small projects. Critical processes are discouraged, and demo data may be erased.
OpenSurvey, the open-source alternative to Google Docs and Typeform empowers users to craft short-answer and multiple-choice questions effortlessly. Its simplicity and speed are unmatched. Plus, for those seeking privacy and control, it offers a self-hosting option. Choose OpenSurvey for elegant, transparent, efficient survey creation.
Currently I'm hosting the demo in Vercel for hosting the Nextjs App and Supabase for the PostgreSQL database. I decided to use this platsforms because both give free trial plans. So everyone can host their own opensurvey for free 🤑.
In vercel I got 4 enviroments variables
For the first two check this guide: Supabase guide to connect prisma
Actually, we use DATABASE_URL and DIRECT_URL because Vercel use serverless. But you can adapt the code to just use DATABASE_URL if you host nextjs in a not serverless enviroment like Render. For more info check Prisma Docs
For more info about the nextauth enviroments check NextAuth Docs
- DATABASE_URL
- DIRECT_URL
- NEXTAUTH_URL: opensurvey.vercel.app
- NEXTAUTH_SECRET: very-secret-password
I will try to create a docker image in the future 🙂
For new feature requests, create an issue explaining what you want and why you need it.
If you need help, please post your questions in the 'issues' section of the repository.
npx prisma db push npx prisma generate
npx prisma migrate dev --name init
npx prisma db seed
npx prisma studio
npx prisma migrate reset