Ecommerce Template
Next.js·React 등으로 만든 최신 전자상거래 템플릿
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
This is the recommended macOS setup. It uses Docker for PostgreSQL and maps host port 5433 to the container's port 5432, avoiding conflicts with a PostgreSQL installation already running on port 5432.
Wait for Docker Desktop to start, then verify the Docker daemon:
Next.js loads .env.local. Prisma loads .env through prisma.config.ts. Both files must contain the local database URLs.README 전문 보기 ↗This is the recommended macOS setup. It uses Docker for PostgreSQL and maps host port 5433 to the container's port 5432, avoiding conflicts with a PostgreSQL installation already running on port 5432.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install node
brew install --cask docker
open -a Docker
Wait for Docker Desktop to start, then verify the Docker daemon:
until docker info >/dev/null 2>&1; do
sleep 1
done
git clone https://github.com/lootlocker0/Loot-Locker.git
cd Loot-Locker
Next.js loads .env.local. Prisma loads .env through prisma.config.ts. Both files must contain the local database URLs.
cp .env.example .env.local
cp .env.example .env
sed -i '' \
-e 's|^DATABASE_URL=.*|DATABASE_URL="postgresql://postgres:postgres@localhost:5433/lootlockers_dev?sslmode=disable"|' \
-e 's|^DIRECT_URL=.*|DIRECT_URL="postgresql://postgres:postgres@localhost:5433/lootlockers_dev?sslmode=disable"|' \
.env.local
sed -i '' \
-e 's|^DATABASE_URL=.*|DATABASE_URL="postgresql://postgres:postgres@localhost:5433/lootlockers_dev?sslmode=disable"|' \
-e 's|^DIRECT_URL=.*|DIRECT_URL="postgresql://postgres:postgres@localhost:5433/lootlockers_dev?sslmode=disable"|' \
.env
docker pull postgres:15
docker rm -f lootlockers-postgres 2>/dev/null || true
docker run -d --name lootlockers-postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_USER=postgres \
-e POSTGRES_DB=lootlockers_dev \
-p 5433:5432 \
postgres:15
until docker exec lootlockers-postgres pg_isready -U postgres -d lootlockers_dev; do
sleep 1
done
docker ps --filter name=lootlockers-postgres
docker exec lootlockers-postgres pg_isready -U postgres -d lootlockers_dev
docker exec lootlockers-postgres psql -U postgres -d lootlockers_dev -c 'SELECT current_database(), current_user;'
npm install
npx prisma migrate deploy
docker exec -i lootlockers-postgres psql -U postgres -d lootlockers_dev < prisma/migrations/manual_constraints.sql
npx prisma db seed
unset DATABASE_URL DIRECT_URL
npm run dev
Open http://localhost:3000.
open -a Docker
until docker info >/dev/null 2>&1; do
sleep 1
done
docker rm -f lootlockers-postgres
Then run the PostgreSQL docker run command from Quick setup again.
docker ps --filter name=lootlockers-postgres
docker exec lootlockers-postgres pg_isready -U postgres -d lootlockers_dev
docker exec lootlockers-postgres psql -U postgres -d lootlockers_dev -c '\dt'
npx prisma migrate deploy
docker exec -i lootlockers-postgres psql -U postgres -d lootlockers_dev < prisma/migrations/manual_constraints.sql
npx prisma db seed
To make it live in the database, rerun the seed in the project:
set -a && source .env.local && set +a && npx prisma db seed
DATABASE_URL or DIRECT_URL is missingpwd
grep -E '^(DATABASE_URL|DIRECT_URL)=' .env.local .env
unset DATABASE_URL DIRECT_URL
npx prisma generate
docker start lootlockers-postgres
docker exec lootlockers-postgres pg_isready -U postgres -d lootlockers_dev
npx prisma migrate deploy
Stop the development server with Ctrl+C, then run:
unset DATABASE_URL DIRECT_URL
rm -rf .next
npm run dev
5433 is already in uselsof -nP -iTCP:5433 -sTCP:LISTEN
Stop the process using that port, or change 5433 consistently in both .env.local and .env, and in the Docker -p option.
3000 is already in uselsof -nP -iTCP:3000 -sTCP:LISTEN
Stop the old Next.js process, then run npm run dev again.
Stop the database:
docker stop lootlockers-postgres
Start the database again:
docker start lootlockers-postgres
Remove the database container and its data:
docker rm -f lootlockers-postgres
These are the commands from the first setup attempt. This trial used Homebrew PostgreSQL on the default host port 5432.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo >> /Users/$USER/.bash_profile
echo 'eval "$(/usr/local/bin/brew shellenv bash)"' >> /Users/$USER/.bash_profile
eval "$(/usr/local/bin/brew shellenv bash)"
brew install node
cd Loot-Locker
npm install
cp .env.example .env.local
brew install postgresql
brew services start postgresql@18
psql -d postgres -c "CREATE DATABASE lootlockers_dev;"
The original psql -c "CREATE DATABASE lootlockers_dev;" command failed because psql tried to connect to a database named after the macOS user. The corrected command specifies the existing postgres database with -d postgres.
For a Homebrew PostgreSQL database, the matching local URLs are:
DATABASE_URL="postgresql://aizarameenhossain@localhost:5432/lootlockers_dev?sslmode=disable"
DIRECT_URL="postgresql://aizarameenhossain@localhost:5432/lootlockers_dev?sslmode=disable"
This is the corrected setup used after Trial #1. Docker Desktop provides PostgreSQL, and host port 5433 maps to the container's port 5432.
brew install --cask docker
open -a Docker
until docker info >/dev/null 2>&1; do
sleep 1
done
cd Loot-Locker
cp .env.example .env.local
cp .env.example .env
sed -i '' \
-e 's|^DATABASE_URL=.*|DATABASE_URL="postgresql://postgres:postgres@localhost:5433/lootlockers_dev?sslmode=disable"|' \
-e 's|^DIRECT_URL=.*|DIRECT_URL="postgresql://postgres:postgres@localhost:5433/lootlockers_dev?sslmode=disable"|' \
.env.local
sed -i '' \
-e 's|^DATABASE_URL=.*|DATABASE_URL="postgresql://postgres:postgres@localhost:5433/lootlockers_dev?sslmode=disable"|' \
-e 's|^DIRECT_URL=.*|DIRECT_URL="postgresql://postgres:postgres@localhost:5433/lootlockers_dev?sslmode=disable"|' \
.env
docker pull postgres:15
docker rm -f lootlockers-postgres 2>/dev/null || true
docker run -d --name lootlockers-postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_USER=postgres \
-e POSTGRES_DB=lootlockers_dev \
-p 5433:5432 \
postgres:15
until docker exec lootlockers-postgres pg_isready -U postgres -d lootlockers_dev; do
sleep 1
done
npm install
npx prisma migrate deploy
docker exec -i lootlockers-postgres psql -U postgres -d lootlockers_dev < prisma/migrations/manual_constraints.sql
npx prisma db seed
unset DATABASE_URL DIRECT_URL
rm -rf .next
npm run dev