Skip to content

emrergin/belief

Repository files navigation

Experiment for Belief Eliciation

Web based experimentation for the belief elicitation, specifically quadratic and binarized scoring rules.

Joint project with Mehmet Yiğit Gürdal and Tolga Umut Kuzubaş.

Setup

  • npm install
  • Setup env variables.
  • npx prisma generate
  • npm run dev

Technologies Used

  • Next.js as the React framework.
  • Next.js API routes as the backend.
  • Prisma as the ORM for migrations and database access.
  • PostgreSQL as the database.
  • TypeScript as the programming language.
  • Mantine as the UI library.

Details

Some introductory readings for the concepts.

Sources

What I learned

  • This is the first Next.js app I completed.
  • This is the first time I am using Prisma, and also PostgreSQL.
  • For autoanimate to work as expected, the parent element needs to have a specified width.
  • My first use case of Intl.ListFormat.
  • I learned that new Date() is not safe to use with Next.js outside of a useEffect call.