Home
Relevant source files
The following files were used as context for generating this wiki page:
Ever® Demand™ is an open-source, real-time, and reactive platform for building collaborative, on-demand, and sharing economy applications. Built entirely with TypeScript, it provides a headless commerce framework that exposes rich GraphQL, REST, and WebSocket APIs, allowing for flexible implementation of various front-end clients for administration, shopping, and logistics.
The platform is designed to support both single-store and multi-store/multi-vendor marketplaces. It is currently in an alpha stage of development, meaning significant changes and bugs are to be expected. The project is structured as a monorepo managed by Lerna and Yarn workspaces.
Sources: README.md:15-20, 60-63, package.json:2-5, 12
Platform Architecture
The Ever Demand platform is built on a headless commerce architecture. A central backend API server provides data and real-time functionality to a suite of separate front-end applications. This decoupled approach allows for independent development and deployment of the server and the various client UIs.
The diagram below illustrates the high-level architecture of the Ever Demand platform, showing the relationship between the core API and the various client applications.
Backend (Core API)
The core of the platform is a backend API server built with Node.js and the NestJS framework. It handles all business logic, data persistence, and real-time communication.
- Framework: NestJS on top of ExpressJS.
- APIs: Exposes GraphQL, REST, and real-time WebSocket APIs using Socket.IO.
- Database: Uses MongoDB with the Mongoose ORM. There is work in progress to add support for SQL databases (MySQL, PostgreSQL, etc.) via TypeORM and Prisma.
- Real-time: RxJS is used extensively for reactive programming.
- Dependency Injection: Utilizes NestJS's built-in DI and InversifyJS.
Sources: README.md:66-80, packages/core/README.md:3-25
Frontend Applications
The platform includes multiple client applications for different user roles and platforms.
| Application | Purpose | Technology | Status |
|---|---|---|---|
| Admin Website | Manage all platform features and settings. | Angular, ngx-admin | Active |
| Shopping Website | Customer-facing e-commerce website. | Angular | Active |
| Shopping Website | Alternative customer-facing website. | Gatsby | Work in Progress |
| Shopping Mobile App | Customer-facing mobile ordering app. | Ionic 5 | Active |
| Shopping Mobile App | Alternative customer-facing mobile app. | React Native, Expo | Work in Progress |
| Shopping Mobile App | Alternative customer-facing mobile app. | Flutter | Work in Progress |
| Merchant Tablet App | For merchants to manage orders and deliveries. | Ionic 5 | Active |
| Carrier Mobile App | For drivers/carriers to manage deliveries. | Ionic 5 | Active |
Sources: README.md:45-55, 70-77, packages/shop-mobile-expo/README.md, packages/shop-mobile-flutter/README.md, packages/shop-web-gatsby/README.md
Key Features
Current Features
- Supports Single-Store and Multi-Store / Multi-Vendor / Peer-to-Peer models.
- Reactive, real-time platform using WebSockets.
- Headless commerce framework with GraphQL, REST, and WS APIs.
- Multiple client applications (Admin, Shopping, Merchant, Carrier).
- Multi-language support (i18n).
- Product catalogs with multi-image support.
- Inventory and stock management.
- Real-time order management and processing.
- Delivery and shipping management with real-time location tracking.
- Real-time discounts, promotions, and availability updates.
- Customer registration, guest checkouts, and invitations.
- Payment processing via Stripe.
Sources: README.md:37-59
Planned Features
- Tax Calculations
- Third-party shipping provider integrations
- User Roles / Permissions
- Support for large product catalogs with variants, facets, and full-text search
Sources: README.md:65-70
Technology Stack
The project is a full-stack TypeScript monorepo, leveraging modern frameworks for both backend and frontend development.
This diagram shows the primary technologies used across the platform.
Getting Started
The project uses Gitflow Workflow, with master being the stable branch and develop containing the latest, potentially unstable, changes. Yarn is the required package manager.
Sources: README.md:101-110
Installation and Build Flow
The following diagram outlines the steps to get the project installed and built.
Sources: README.md:103-130
Project Scripts
The root package.json contains scripts to manage the monorepo, including building and running individual applications.
| Script | Description |
|---|---|
yarn bootstrap | Installs all dependencies for all packages using Lerna. |
yarn build:all | Builds all common modules and applications in sequence. |
yarn run:server | Starts the backend API server. |
yarn run:admin | Starts the Admin Website (localhost:4200). |
yarn run:shopmobile | Starts the Shopping Mobile App (localhost:4201). |
yarn run:merchant | Starts the Merchant Tablet App (localhost:4202). |
yarn run:carrier | Starts the Carrier Mobile App (localhost:4203). |
yarn run:shopweb | Starts the Shopping Website (localhost:3000). |
Sources: package.json:14-46, README.md:144-156
Licensing
The Ever Demand platform has a multi-license structure. The default license for the Community Edition is the GNU Affero General Public License v3.0 (AGPL-3.0). However, some parts of the platform are available under different open-source licenses.
- Ever Demand Platform (Core): AGPL-3.0
- Shopping & Carrier Mobile Apps: GNU General Public License v3.0 (GPL-3.0)
- Shared Modules: Primarily GPL-3.0, with some under the MIT License.
Commercial Small Business and Enterprise licenses are also available for purchase, which do not have the copyleft requirements of the AGPL/GPL.
Sources: LICENSES.md, README.md:214-230, package.json:4, packages/shop-web-angular/GNU-AGPL-3.0.txt, packages/shop-mobile-ionic/gpl-3.0.txt