Get Started in 5 Minutes
This guide will help you quickly set up and run your EverShop application locally.Before you begin, ensure you have Node.js 18+ and PostgreSQL 12+ installed on your system.
Prerequisites
Verify you have the required software:Quick Setup
Install Dependencies
Install all required npm packages:This installs:
@evershop/evershop(v2.1.1) - Core framework- TypeScript and type definitions
- Development tools
Run Initial Setup
Initialize the database and install EverShop:This command:
- Creates database tables
- Sets up initial data
- Configures the system
Start Development Server
Launch the development server with hot reload:Your store will be available at:
- Storefront: http://localhost:3000
- Admin Panel: http://localhost:3000/admin
Available Commands
Here are the npm scripts configured in yourpackage.json:
Verify Installation
Once the development server is running, verify everything works:- Storefront
- Admin Panel
- API
Open http://localhost:3000 in your browser. You should see:
- Homepage with featured products section
- Navigation header
- Product categories
- Footer with store information
anasuplements) uses a green color scheme optimized for supplement products.Project Structure Overview
Understand your project’s organization:Active Extensions
Your project comes with these pre-configured extensions:offlinePayments
Adds cash on delivery and bank transfer payment methods
productCatalog
Extended product information system for supplements (ingredients, benefits, dosage)
productReviews
Customer review and rating system for products
config/default.json:
Development Workflow
Make Changes
Edit files in
extensions/ or themes/:- TypeScript files (
.ts,.tsx) - GraphQL schemas (
.graphql) - Configuration files (
.json)
Auto-Reload
The development server automatically detects changes and reloads:
- Backend changes rebuild the API
- Frontend changes update the UI
- No manual restart needed
Example: View Sample Extension
Explore the sample extension to understand the structure:View Sample API Endpoint
View Sample API Endpoint
Common Issues
Port 3000 already in use
Port 3000 already in use
If port 3000 is occupied, you can change it in
config/default.json:Database connection error
Database connection error
Verify your
.env file has correct credentials:Module not found errors
Module not found errors
Reinstall dependencies:
TypeScript compilation errors
TypeScript compilation errors
Each extension has its own
tsconfig.json. Check for type errors:Next Steps
Now that you have EverShop running:Installation Guide
Learn about detailed configuration options and production setup
Development Guide
Build your first extension and customize your store
Theme Customization
Modify the visual appearance and create custom themes
API Reference
Explore the complete API documentation
Need Help?Check the
context/ directory in your project root for complete technical documentation in Spanish.