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.

This is not using the latest Next.js? Am I gonna get attacked?

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.

About

Web Based Experiment

Resources

Stars

Watchers

Forks