Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Antony-Figueroa/my-evershop-app/llms.txt
Use this file to discover all available pages before exploring further.
System Requirements
Before installing EverShop, ensure your system meets these requirements:Runtime
Node.js 18.0 or higher
Database
PostgreSQL 12.0 or higher
Package Manager
npm 9.0 or higher
Build Tools
TypeScript 5.9+ (included in devDependencies)
Installation Steps
Install Node.js
Download and install Node.js from nodejs.org or use a version manager:
- nvm (Linux/macOS)
- nvm-windows
- Direct Download
Install Dependencies
Install all required packages:This installs the dependencies from
package.json:Run Initial Setup
Initialize the database and install EverShop:This command (
evershop install) will:- Create all database tables
- Set up initial data and schemas
- Configure default settings
- Create admin user
- Initialize extensions
Start Development Server
Launch the application:The server will start at http://localhost:3000
Development mode includes:
- Hot module replacement
- Source maps for debugging
- Verbose error messages
- Auto-compilation of TypeScript
Configuration Files
Package Configuration
Yourpackage.json defines the project structure:
npm run setup
npm run setup
Runs
evershop install to initialize the database and system. Use this once during initial installation.npm run dev
npm run dev
Runs
evershop dev to start the development server with hot reload. Use this during development.npm run build
npm run build
Runs
evershop build to compile TypeScript and bundle assets for production.npm run start
npm run start
Runs
evershop start to start the production server. Run build first.Store Configuration
Theconfig/default.json file contains base configuration:
- Shop Settings
- Extension Registration
- Theme Configuration
Configure store-wide settings:
Environment-Specific Configuration
Extension Setup
Each extension has its own configuration:Extension Structure
Extension Package Configuration
Extension TypeScript Configuration
Theme Setup
Current Theme: anasuplements
The active theme provides the visual layer:Theme Configuration
Themes use the same TypeScript configuration as extensions. Each theme component exports:Theme components should only contain presentation logic. Business logic belongs in extensions.
Production Deployment
Build for Production
Build the Application
Compile all TypeScript and bundle assets:This compiles:
- All extensions to
.evershop/build/extensions/ - All themes to
.evershop/build/themes/ - Creates optimized production bundles
Production Checklist
Security
Security
- Strong
SESSION_SECRETin.env - PostgreSQL users with limited privileges
- HTTPS enabled (use reverse proxy like Nginx)
- Firewall configured (only ports 80/443 open)
- Regular security updates
Performance
Performance
- Database connection pooling configured
- Static assets served via CDN
- Gzip compression enabled
- Database indexes optimized
- Caching strategy implemented
Monitoring
Monitoring
- Error logging configured
- Performance monitoring (APM)
- Database backups automated
- Uptime monitoring
- Log rotation configured
Scalability
Scalability
- Load balancer for multiple instances
- Database read replicas
- Redis for session storage
- Message queue for async tasks
- Auto-scaling configured
Troubleshooting
Database Connection Failed
Database Connection Failed
Problem: Cannot connect to PostgreSQLSolutions:
Port Already in Use
Port Already in Use
Problem: Port 3000 is already occupiedSolutions:
- Change port in
config/default.json:
- Or kill the process using port 3000:
TypeScript Compilation Errors
TypeScript Compilation Errors
Problem: Extension fails to compileSolutions:
Extension Not Loading
Extension Not Loading
Problem: Custom extension doesn’t appearSolutions:
- Verify registration in
config/default.json - Check extension is enabled:
"enabled": true - Verify directory structure matches config
- Restart development server
- Check server logs for errors
GraphQL Schema Errors
GraphQL Schema Errors
Problem: GraphQL types not resolvingSolutions:
Next Steps
Development Guide
Learn how to build extensions and create custom functionality
Theme Customization
Customize the visual appearance of your store
API Reference
Explore the complete API documentation
GraphQL Schema
Learn about GraphQL types and queries
Additional ResourcesCheck the
context/ directory in your project for detailed technical documentation in Spanish, including:- Architecture overview
- Code standards
- Testing guide
- Deployment procedures