evershop

πŸ›οΈ Typescript E-commerce Platform

RAW Doc

File: README.md

      

[Documentation](https://evershop.io/docs/development/getting-started/introduction) | [Demo](https://demo.evershop.io/)

Introduction

EverShop is a modern, TypeScript-first eCommerce platform built with GraphQL and React. Designed for developers, it offers essential commerce features in a modular, fully customizable architectureβ€”perfect for building tailored shopping experiences with confidence and speed.

Installation Using Docker

You can get started with EverShop in minutes by using the Docker image. The Docker image is a great way to get started with EverShop without having to worry about installing dependencies or configuring your environment.

bash
curl -sSL https://raw.githubusercontent.com/evershopcommerce/evershop/main/docker-compose.yml > docker-compose.yml
docker compose up -d

For the full installation guide, please refer to our Installation guide.

Documentation

Demo

Explore our demo store.

Demo user:

Email: [email protected]
Password: 123456

Support

If you like my work, feel free to:

  • ⭐ this repository. It helps.
  • about EverShop. Thank you!

Contributing

EverShop is an open-source project. We are committed to a fully transparent development process and appreciate highly any contributions. Whether you are helping us fix bugs, proposing new features, improving our documentation or spreading the word - we would love to have you as part of the EverShop community.

Ask a question about EverShop

You can ask questions, and participate in discussions about EverShop-related topics in the EverShop Discord channel.

Create a bug report

If you see an error message or run into an issue, please create bug report. This effort is valued and it will help all EverShop users.

Submit a feature request

If you have an idea, or you're missing a capability that would make development easier and more robust, please Submit feature request.

If a similar feature request already exists, don't forget to leave a "+1".
If you add some more information such as your thoughts and vision about the feature, your comments will be embraced warmly :)

Please refer to our Contribution Guidelines and Code of Conduct.

πŸš€ The Future of EverShop

EverShop is seeing rapid organic growth and strong adoption from the developer community. We are now scaling our operations and building EverShop Cloud.

If you are a strategic investor interested in the future of Node.js commerce and our mission to set a new standard for modern eCommerce, we’d love to share our vision and roadmap with you.

πŸ“© Get in touch: [email protected]

License

GPL-3.0 License


File: packages/postgres-query-builder/README.md

PostgreSQL query builder for Node

A PostgreSQL query builder for NodeJS.

Installation

javascript
npm install @evershop/postgres-query-builder

Usage guide

It implements async/await.

Simple select

javascript
const { select } = require('@evershop/postgres-query-builder');

const products = await select('*')
  .from('product')
  .where('product_id', '>', 1)
  .execute(pool);

More complex where

javascript
const { select } = require('@evershop/postgres-query-builder');

const products = await select('*')
  .from('product')
  .where('product_id', '>', 1)
  .and('sku', 'LIKE', 'sku')
  .execute(pool);

Event more complex where

javascript
const { select } = require('@evershop/postgres-query-builder');

const query = select('*').from('product');
query.where('product_id', '>', 1).and('sku', 'LIKE', 'sku');
query.orWhere('price', '>', 100);

const products = await query.execute(pool);

Join table

javascript
const { select } = require('@evershop/postgres-query-builder');

const query = select('*').from('product');
query.leftJoin('price').on('product.`product_id`', '=', 'price.`product_id`');
query.where('product_id', '>', 1).and('sku', 'LIKE', 'sku');
query.andWhere('price', '>', 100);

const products = await query.execute(pool);

Insert&update

user_id name email phone status
1 David [email protected] 123456 1
javascript
```javascript
const {insert} = require('@evershop/postgres-query-builder')

const query = insert("user")
.given({name: "David", email: "[email protected]", "phone": "123456", status: 1, notExistedColumn: "This will not be a part of the query"});
await query.execute(pool);
javascript
const { update } = require('@evershop/postgres-query-builder');

const query = update('user')
  .given({
    name: 'David',
    email: '[email protected]',
    phone: '123456',
    status: 1,
    notExistedColumn: 'This will not be a part of query'
  })
  .where('user_id', '=', 1);
await query.execute(pool);

Working with transaction

javascript
const { Pool } = require('pg');
const {
  insert,
  getConnection,
  startTransaction,
  commit,
  rollback
} = require('@evershop/postgres-query-builder');

const pool = new Pool(connectionSetting);

// Create a connection from the pool
const connection = await getConnection(pool);

// Start a transaction
await startTransaction(connection);
try {
  await insert('user')
    .given({
      name: 'David',
      email: '[email protected]',
      phone: '123456',
      status: 1,
      notExistedColumn: 'This will not be a part of the query'
    })
    .execute(connection);
  await commit(connection);
} catch (e) {
  await rollback(connection);
}

Security

All user provided data will be escaped.


File: packages/evershop/README.md

      

[Documentation](https://evershop.io/docs/development/getting-started/introduction) | [Demo](https://demo.evershop.io/)

Introduction

EverShop is a modern, TypeScript-first eCommerce platform built with GraphQL and React. Designed for developers, it offers essential commerce features in a modular, fully customizable architectureβ€”perfect for building tailored shopping experiences with confidence and speed.

Installation Using Docker

You can get started with EverShop in minutes by using the Docker image. The Docker image is a great way to get started with EverShop without having to worry about installing dependencies or configuring your environment.

bash
curl -sSL https://raw.githubusercontent.com/evershopcommerce/evershop/main/docker-compose.yml > docker-compose.yml
docker-compose up -d

/* Detailed source-code truncated for AI context efficiency. */

json
{
  "system": {
    "extensions": [
      {
        "name": "sample",
        "resolve": "extensions/sample",
        "enabled": true
      }
    ]
  }
}

Warning
Enable/disable the extension requires running the command npm run build again.