Quickstart Guide
Get your Openfront e-commerce store up and running in under 5 minutes. This guide will walk you through the fastest path to a working instance.This quickstart focuses on getting you up and running quickly. For detailed configuration options, see the Installation Guide.
Prerequisites
Before you begin, make sure you have:- Node.js 20+ installed on your machine
- PostgreSQL database (local or hosted)
- A terminal and text editor
# Required - Database Connection
DATABASE_URL="postgresql://username:password@localhost:5432/openfront"
# Required - Session Security (min 32 characters)
SESSION_SECRET="your-very-long-session-secret-key-minimum-32-characters"
Important: Replace
username, password, and localhost:5432 with your actual PostgreSQL credentials. The SESSION_SECRET must be at least 32 characters long.This first user is automatically created with full admin permissions, including access to all features and settings.
After creating your admin account, you’ll be redirected to the onboarding flow. This will help you:
We recommend completing the onboarding with sample data. This gives you a fully functional demo store to explore before adding your own products.
Storefront
http://localhost:3000Customer-facing store where shoppers browse and purchase
Admin Dashboard
http://localhost:3000/dashboardManagement interface for orders, products, and settings
GraphQL API
http://localhost:3000/api/graphqlInteractive API explorer and documentation
What’s Next?
Now that you have a working Openfront instance, here’s what you can do:Explore the Admin Dashboard
Log in to/dashboard and explore:
- Analytics: View real-time store performance
- Orders: Process and fulfill customer orders
- Products: Add and manage your product catalog
- Customers: View and manage customer accounts
- Settings: Configure regions, payments, and shipping
Customize Your Storefront
The storefront is fully customizable:- Modify components in
features/storefront/ - Update styling with Tailwind CSS
- Add custom pages in
app/(storefront)/
Add Your Products
Create your first product through the dashboard:- Navigate to Products → New Product
- Add product details (title, description, price)
- Upload product images
- Configure variants (sizes, colors, etc.)
- Set inventory levels
- Publish when ready
Configure Payment Processing
Set up payment providers to accept real payments:- Stripe
- PayPal
Add Stripe credentials to your Then enable Stripe in Settings → Payment Providers
.env file:Set Up Shipping
Configure shipping providers for automated rate calculation and label generation:Quick Deploy Options
Want to deploy to production? Use one of these one-click deploy options:Deploy to Vercel
One-click deployment to Vercel with automatic PostgreSQL setup
Deploy to Railway
Deploy to Railway with managed database included
Development Commands
Here are the essential commands you’ll use during development:Common Issues
Database connection failed
Database connection failed
Make sure your PostgreSQL server is running and the
DATABASE_URL in your .env file is correct.Test your connection:Session secret error
Session secret error
The
SESSION_SECRET must be at least 32 characters long. Generate a secure secret:Port 3000 already in use
Port 3000 already in use
Another application is using port 3000. Either stop that application or specify a different port:
Migration errors
Migration errors
If you encounter migration errors, you can reset your database:
Learn More
Now that you have a working store, dive deeper into specific topics:Installation Guide
Detailed setup for all deployment scenarios
Environment Variables
Complete reference of all configuration options
API Reference
Explore the GraphQL API and data models
Platform Documentation
Deep dive into Openfront’s architecture