Deployed URL: heirarch-square.vercel.app
First, create a .env file in the root directory of the project and set the following environment variables.
# a secret for NextAuth, can be generated using https://generate-secret.vercel.app/32
AUTH_SECRET=
AUTH_TRUST_HOST=true
NEXTAUTH_URL=http://localhost:3000
# postgres database connection string
DATABASE_URL=
# vercel blob write token, used when uploading product images
BLOB_READ_WRITE_TOKEN=Then, run the development server:
pnpm install
pnpm prisma db push
pnpm prisma generate
pnpm devOpen http://localhost:3000 with your browser to see the result.
Visit http://localhost:3000/seed to seed the database.
First, create a .env file and set the following environment variables.
# a secret for NextAuth, can be generated using https://generate-secret.vercel.app/32
AUTH_SECRET=
AUTH_TRUST_HOST=true
NEXTAUTH_URL=http://localhost:3000
# postgres database connection string
DATABASE_URL=postgresql://postgres:postgres@db:5432/postgres
# vercel blob write token, used when uploading product images
BLOB_READ_WRITE_TOKEN=Then, start the docker containers
docker compose upOpen http://localhost:3000 with your browser to see the result.
Visit http://localhost:3000/seed to seed the database.
