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ş.
npm install- Setup env variables.
npx prisma generatenpm run dev
- 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.
Some introductory readings for the concepts.
- https://www.sciencedirect.com/science/article/abs/pii/S016726811400050X
- https://sites.pitt.edu/~alistair/papers/PSR_November.pdf
- https://www.sciencedirect.com/science/article/abs/pii/S0167268121002717
- https://academic.oup.com/restud/article-abstract/80/3/984/1573566
- https://stackoverflow.com/questions/34189370/how-to-repeat-an-element-n-times-using-jsx-and-lodash
- https://blog.logrocket.com/effortless-database-schema-migration-prisma/
- https://reacthustle.com/blog/flatten-object-javascript-typescript
- https://codepen.io/mr-t77/pen/jRzmMZ
- 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.
The application uses the Next.js Pages Router exclusively and does not use the App Router, Server Actions, Route Handlers, middleware, or the Next.js image optimization pipeline. The reported Next.js advisories apply only to those features and do not affect the runtime behavior of this application. This has been verified by project structure and dependency usage. As a result, no upgrade is required to mitigate these advisories.