Skip to content

Latest commit

 

History

History
297 lines (202 loc) · 20.1 KB

README.md

File metadata and controls

297 lines (202 loc) · 20.1 KB

Open Commerce Platform

Gitpod Ready-to-Code Join the community on Spectrum Gitter Get help on Codementor

💡 What's New

🌟 What is it

Ever® Demand™ - Open Platform for Collaborative, On-Demand and Sharing Economies.

It's an Open-Source, Real-Time, and Reactive Platform built with TypeScript.
You are welcome to check more information about the platform at our official website - https://ever.co.

overview

💻 Demos

Demos are not available at the moment as we are moving to Kubernetes and showdown old demo server!

Video Intros

  • Introduction of both Ever Demand and Ever Gauzy platforms - view video (~30 min) or download
  • Introduction to Ever Demand Mobile Shop customer experience (UX) - view video (~30 min) or download

✨ Features

Current Features

  • Supports Single-Store and Multi-Store / Multi-Vendor / Peer-to-Peer / Digital Marketplaces
  • Everything Reactive, Real-Time, and Blazing Fast!
  • Headless Commerce framework, which allows different implementations of store-fronts, Admin UIs, and client apps. It exposes rich GraphQL, REST, and WS APIs.
  • Mobile ordering App for customers to make On-Demand orders (Hybrid / PWA, iOS and Android using Ionic / Ionic Native)
  • Carrier (Driver) Mobile App for deliveries by carriers, drivers, or service providers (iOS and Android using Ionic / Ionic Native)
  • Customizing Shopping e-commerce Website for customers to make in-browser On-Demand purchases of food, goods or services
  • Merchant Tablet App for Stores/Merchants/Warehouses to manage & track orders, organize deliveries, etc.
  • Admin Website used to manage all platform features and settings in the single Web-based interface
  • Multi-language and culture settings across Platform (i18N)
  • Product catalogs (global and per Merchant) with Multiple Product Images
  • Inventory/Stock Management and Real-time Order Management/Processing across the Platform
  • Deliveries/Shipping management and processing across the Platform (shipping with real-time location tracking for On-Demand orders)
  • Real-time discounts, promotions, and product/service availability updates
  • Customer registration, Guest Checkouts, Invitations (optional)
  • Gateway and Payment Processing (currently supported Payments Gateway - Stripe)
  • Plugins / Extensions / Custom Fields (WIP)

Planned Features

  • Tax Calculations
  • Third-party Shipping provider integrations
  • User Roles / Permissions across Platform
  • Large product catalogs with product variants, facets, and full-text search

You can also track feature requests from the community in the separate repo.

Disclaimer

A word of caution: We are in α (alpha), i.e. Ever® Platform™ is very much under development (work in progress, WIP). Expect lots of changes and some 🐛 and please be nice! 😜

🧱 Technology Stack and Requirements

  • Full-stack TypeScript - frontends and NodeJs/Nest backend.
  • Headless Commerce framework (Backend APIs/Server) developed using Nest. Supports GraphQL, REST and WS Real-Time APIs (WebSockets using Socket.io library).
  • Ionic (version 9) with Capacitor (version 8) for Carrier Mobile App and Merchant Tablet App.
  • Shopping Mobile App built with Ionic (version 9) and Capacitor (version 8).
  • Shopping Mobile App built with React Native using Expo (SDK 58), with the same features as the Ionic shopping app.
  • Shopping Mobile App built with Flutter / Dart 3, with the same features as the Ionic shopping app.
  • Shopping Website developed with Angular (version 22) with Angular Material.
  • Admin Website developed with Angular (version 22) using ngx-admin / Nebular (version 17).
  • RxJS library used heavily in every part of the Platform.
  • InversifyJS used for Inversion Control / Dependency Injection in most parts of the Platform. On the Backend/API we also use DI provided by Nest.
  • MongoDB Database used with Mongoose ORM (Mongoose 9; MongoDB 7 or newer, we test with MongoDB 8).
  • We have an ongoing effort (WIP) to add support for other databases using TypeORM and Prisma. The following additional DBs will be fully supported: MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, and Oracle.
  • For production, every app ships as a Docker image (.deploy/*/Dockerfile): the API runs as a plain node process (no process manager; restarts are the orchestrator's job, e.g. Kubernetes), and the web apps are static builds served by nginx.

See also README.md and CREDITS.md files in relevant folders for lists of libraries and software included in the Platform, information about licenses and other details.

📄 Documentation

Please refer to our official Platform Documentation and to our Wiki (WIP).

For a quick overview of each project in the Platform (Server, Admin, Shops, etc.), you can search for the README.md file in the root of the project's folders. For example, see ./backend/api/README.md for Server (Backend) related overview.

📊 Activity

Alt

🚀 Getting Started

We follow Gitflow Workflow, so the develop branch may be in an unstable or even broken state during development. Please use releases or master branch instead of the develop branch in order to get more stable code.

Clone Repo

Clone the Ever Platform Git repo:

git clone https://github.com/ever-co/ever-demand.git

IMPORTANT NOTE:

  • If you want to use a develop branch (unstable, but latest development) clone using --branch develop (our default branch).
  • If you want to use a release branch (more stable) clone use --branch master.

Requirements

  • Node.js 26 (see .nvmrc)
  • pnpm 12: npm install -g pnpm@12
  • A MongoDB-compatible database, either one of:
  • For the Flutter app: the Flutter stable SDK, or Docker (see packages/shop-mobile-flutter/README.md)

Install

From the folder where you cloned the repo, install every package of the workspace (pnpm workspaces; pnpm-workspace.yaml lists the packages):

pnpm install

Build

pnpm run build:common   # shared code; needed before the API or any app
pnpm run build:all      # API + all Angular / Ionic apps

Each app also has its own script, e.g. pnpm run build:admin, pnpm run build:shopmobile, pnpm run build:shopexpo.

Test

pnpm run typecheck
pnpm run test           # unit tests of every package (Jest for the API, Vitest for the Angular apps, Jest for Expo)
pnpm run e2e            # Playwright e2e (needs the API and the apps running, see e2e/playwright.config.ts)

The API also has its own e2e suite against a real MongoDB: pnpm --filter @ever-platform/core test:e2e.

Database: MongoDB or DocumentDB

The API connects to the database in DB_URI (packages/core/.env). By default that is MongoDB on localhost:27017 (mongodb://localhost/ever_development); see also the MongoDB wiki page.

Ever Demand also runs on DocumentDB, the open-source MongoDB-compatible database built on PostgreSQL (MIT, Linux Foundation). Use it if you would rather operate PostgreSQL than MongoDB. The full API and Playwright e2e suites pass on DocumentDB 1.2 exactly as on MongoDB 8.

  • Local: DOCUMENTDB_PASSWORD=<a password> docker compose -f docker-compose.yml -f docker-compose.documentdb.yml up
  • Connection: DB_URI=mongodb://<host>:10260/<database>?tls=true plus DB_NAME, DB_USER, DB_PASS. Use TLS, and start the gateway with --tlsMode requireTLS in production.
  • Production: give DocumentDB its own PostgreSQL, never one shared with other apps.

Setup, differences and the test results are in docs/deployment/documentdb.md.

Platform Configuration

Every package reads its settings from environment variables; see the .env.template file in each package (for the API: packages/core/.env.template). In production the API requires JWT_SECRET and EXPRESS_SESSION_SECRET (long random values) and ADMIN_PASSWORD for the first admin; keep secrets in a secret store (OpenBao, GitHub secrets, k8s Secrets), never in the repo or the images. See also the relevant section in our documentation.

Run Platform Projects

  • Run API server pnpm run:server (or pnpm run:server:dev to rebuild on TS file changes)
  • Run Admin Website pnpm run:admin and open http://localhost:4200
  • Run Shopping Mobile App (Ionic) pnpm run:shopmobile and open http://localhost:4201
  • Run Merchant Ionic Tablet App pnpm run:merchant and open http://localhost:4202
  • Run Carrier Mobile app pnpm run:carrier and open http://localhost:4203
  • Run Shopping Website pnpm run:shopweb and open http://localhost:3000
  • Run Shopping Mobile App (React Native / Expo) pnpm run:shopexpo
  • Run Shopping Website (Gatsby) pnpm run:shopgatsby
  • Run Shopping Mobile App (Flutter): see packages/shop-mobile-flutter/README.md

The Ionic apps use Capacitor for native builds: run npx cap add android (or ios) once inside the app folder, then npx cap sync after each web build.

On the first run, the API Server (Backend) creates the MongoDB database ever_development with the following (default) Admin user (outside production; in production set ADMIN_EMAIL / ADMIN_PASSWORD):

  • email: admin@ever.co
  • password: admin

You can use the credentials above to login into Platform Admin App.

Metrics

According to cloc project, Ever Platform today has more than 120K lines of TypeScript, GraphQL, HTML / CSS and other code files. You can get more details in the relevant section of our documentation.

💌 Contact Us

🔐 Security

Ever® Demand™ Platform follows good security practices, but 100% security cannot be guaranteed in any software! Ever® Demand™ Platform is provided AS IS without any warranty. Use at your own risk! See more details in the LICENSE.md.

In a production setup, all client-side to server-side (backend, APIs) communications should be encrypted using HTTPS/WSS/SSL (REST APIs, GraphQL endpoint, Socket.io WebSockets, etc.).

If you discover any issue regarding security, please disclose the information responsibly by sending an email to mailto:security@ever.co or on huntr and not by creating a GitHub issue.

🛡️ License

We support the open-source community. If you're building awesome non-profit/open-source projects, we're happy to help and will provide (subject to acceptance criteria) Ever Demand Enterprise edition license and free hosting option! Feel free to contact us at mailto:ever@ever.co to make a request. More details are explained in our Wiki.

This software is available under the following licenses:

The default Ever® Demand™ Platform license, without a valid Ever® Demand™ Platform Enterprise or Ever® Demand™ Platform Small Business License agreement, is the Ever® Demand™ Platform Community Edition License.

Please see LICENSE.md for more information on licenses. You can also compare our offering.

FOSSA Status

Trademarks

Ever® is a registered trademark of Ever Co. LTD. Ever® Demand™, Ever® Gauzy™ and Ever® OpenSaaS™ are all trademarks of Ever Co. LTD.

The trademarks may only be used with the written permission of Ever Co. LTD. and may not be used to promote or otherwise market competitive products or services.

All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.

🍺 Contribute

  • Please give us ⭐ on Github, it helps!
  • You are more than welcome to submit feature requests in the separate repo
  • Pull requests are always welcome! Please base pull requests against the develop branch and follow the contributing guide.

💪 Thanks to our Contributors

See our contributors list in CONTRIBUTORS.md.
You can also view a full list of our contributors tracked by Github.

⭐ Star History

Star History Chart

❤️ Powered By

©️ Copyright

Copyright © 2016-present, Ever Co. LTD. All rights reserved.


visitors huntr Circle CI codecov Codacy Badge DeepScan grade Known Vulnerabilities Total alerts Language grade: JavaScript FOSSA Status lerna Crowdin CodeRabbit Pull Request Reviews

🔥 P.S.