Getting Started
Complete visual guide to install, configure, and launch your GrabURL marketplace in 5 minutes
Prerequisites
psql --version\n# Should output: psql (PostgreSQL) 14.x or higher5-Minute Quick Start
Clone and Navigate to Project
First, navigate to your projects directory and ensure you have the GrabURL repository.
cd ~/projects/graburlInstall Dependencies
Install all required npm packages. This will take a few minutes.
npm install
# You should see output like:
# added 523 packages in 45sConfigure Environment
Copy the example environment file and update it with your credentials.
cp .env.example .env
# Then edit .env with your favorite editor
nano .envSetup Database
Create your PostgreSQL database and run migrations.
createdb graburl
npx prisma generate
npx prisma db pushStart Development Server
Launch the Next.js development server. Your site will be available at http://localhost:3000
npm run dev
# Server running at:
# http://localhost:3000Environment Configuration
Database Connection
DATABASE_URL="postgresql://username:password@localhost:5432/graburl"
# Replace:
# - username: your PostgreSQL username
# - password: your PostgreSQL password
# - localhost: your database host (use localhost for local development)Authentication
NEXTAUTH_SECRET="your-super-secret-key-here"
NEXTAUTH_URL="http://localhost:3000"
# Generate a secure secret:
# Run this command and paste the output:
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"Email Service (Resend)
RESEND_API_KEY="re_..."
EMAIL_FROM="noreply@yourdomain.com"
# Get your API key from: https://resend.com2FA Encryption
TWO_FACTOR_ENCRYPTION_KEY="generate-with-command-below"
# Generate:
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"Database Setup
# Create a new PostgreSQL database
createdb graburl
# Verify it was created
psql -l | grep graburlGenerate the Prisma client and push the schema to your database:
# Generate Prisma Client
npx prisma generate
# Apply schema to database
npx prisma db push
# (Optional) Open Prisma Studio to view your database
npx prisma studioOption 1: Docker (Recommended)
docker run -d -p 6379:6379 --name redis redis:7-alpineOption 2: Cloud (Upstash)
1. Sign up at upstash.com
2. Create a Redis database
3. Copy the connection string
REDIS_URL="redis://your-upstash-url"Create Your First Admin User
npm run admin:createFollow the prompts to create your admin account. You'll use this to access the admin dashboard at /admin
Start the Development Server
npm run devVerify PostgreSQL is running: pg_isready
Check your DATABASE_URL format in .env
Regenerate the client: npx prisma generate
Use a different port: PORT=3001 npm run dev
Restart your development server after changing .env
Ensure the file is named exactly .env (not .env.txt)
If you're still having issues:
- Check the FAQ page
- Review the Technical Guide
- Email support at support@graburl.com