This is a Next.js project bootstrapped with create-next-app
.
This project uses the latest version of PostgreSQL database via Docker container.
Before starting a container, you need to make the following changes:
- Rename file
.env.example
to.env
- Change the default password for
POSTGRES_PASSWORD
to your own - Modify
DATABASE_URL
from:postgres://postgres:password@localhost:5432/dq
topostgres://<POSTGRES_USER>:<POSTGRES_PASSWORD>@localhost:5432/<POSTGRES_DB>
if you changed the password, user, or database name. - In your terminal, run
docker-compose up
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.
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>
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.