Skip to main content

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

1

Clone or Navigate to Your Project

If you already have the project, navigate to it:
2

Install Dependencies

Install all required npm packages:
This installs:
  • @evershop/evershop (v2.1.1) - Core framework
  • TypeScript and type definitions
  • Development tools
3

Configure Database

Create a .env file in the project root with your database credentials:
Never commit .env files to version control. The .gitignore is already configured to exclude them.
4

Run Initial Setup

Initialize the database and install EverShop:
This command:
  • Creates database tables
  • Sets up initial data
  • Configures the system
5

Start Development Server

Launch the development server with hot reload:
Your store will be available at:

Available Commands

Here are the npm scripts configured in your package.json:

Verify Installation

Once the development server is running, verify everything works:
Open http://localhost:3000 in your browser. You should see:
  • Homepage with featured products section
  • Navigation header
  • Product categories
  • Footer with store information
The current theme (anasuplements) uses a green color scheme optimized for supplement products.

Project Structure Overview

Understand your project’s organization:
Important Directories
  • ✅ Edit: config/, extensions/, themes/
  • ❌ Never edit: .evershop/, node_modules/

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
All extensions are registered in config/default.json:

Development Workflow

1

Make Changes

Edit files in extensions/ or themes/:
  • TypeScript files (.ts, .tsx)
  • GraphQL schemas (.graphql)
  • Configuration files (.json)
2

Auto-Reload

The development server automatically detects changes and reloads:
  • Backend changes rebuild the API
  • Frontend changes update the UI
  • No manual restart needed
3

Test Changes

View your changes immediately:
  • Refresh your browser
  • Check the console for errors
  • Verify functionality

Example: View Sample Extension

Explore the sample extension to understand the structure:
With route configuration:

Common Issues

If port 3000 is occupied, you can change it in config/default.json:
Verify your .env file has correct credentials:
Reinstall dependencies:
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.