Skip to content

d3li0n/digital-quiz

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

Database

This project uses the latest version of PostgreSQL database via Docker container.

Before starting a container, you need to make the following changes:

  1. Rename file .env.example to .env
  2. Change the default password for POSTGRES_PASSWORD to your own
  3. Modify DATABASE_URL from: postgres://postgres:password@localhost:5432/dq to postgres://<POSTGRES_USER>:<POSTGRES_PASSWORD>@localhost:5432/<POSTGRES_DB> if you changed the password, user, or database name.
  4. In your terminal, run docker-compose up

Prisma Studio

This project uses Prisma to manage interaction with the database. If you don't want to install the external client to access the database, you can use their UI studio by running

npx prisma studio

The application should automatically open the browser window where you can manage your database.

Migrations

If you made any changes to prisma/schema.prisma, make sure to run migration so changes are applied:

npx prisma migrate dev --name <NAME_OF_MIGRATION>

Starting application

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published