Skip to main content

EZsale Setting

info

Gitlab: gitlab.winds.vn/ezsale/ezsale-tool/ezsale-tool-call

Website: setting.ezsale.vn

Note: Sử dụng Monorepos

my-app
├── apps
│ ├── admin
│ └── server
├── .gitlab-ci.yml
├── lerna.json
├── package.json
└── yarn.lock
  • Chức năng
    • Tooltip Filter Customer
    • Call tool
    • Tour
    • Edit key

Installation

Requirements

  • Node.js phiên bản 18.0 trở lên (có thể kiểm tra bằng cách chạy node -v). Bạn có thể sử dụng nvm để quản lý nhiều phiên bản Node trên một máy được cài đặt.
  • Yarn phiên bản 1.22.19.

Running the development server

Hãy thay đổi biến môi file .env trong admin và server. Khi chạy development sẽ sử dụng file .env

  • env admin: Sử dụng cú pháp giống .env.dev

  • env server:

# Port number
PORT=15274

# URL of the Mongo DB
MONGODB_URL=mongodb://root:WindSoft2018@dev.winds.vn:27018
DEFAULT_DB = ezsale-tool-call

# JWT
# JWT secret key
JWT_SECRET=thisisasamplesecret
# Number of minutes after which an access token expires
JWT_ACCESS_EXPIRATION_MINUTES=30
# Number of days after which a refresh token expires
JWT_REFRESH_EXPIRATION_DAYS=30
# Number of minutes after which a reset password token expires
JWT_RESET_PASSWORD_EXPIRATION_MINUTES=10
# Number of minutes after which a verify email token expires
JWT_VERIFY_EMAIL_EXPIRATION_MINUTES=10

# SMTP configuration options for the email service
# For testing, you can use a fake SMTP service like Ethereal: https://ethereal.email/create
SMTP_HOST=email-server
SMTP_PORT=587
SMTP_USERNAME=email-server-username
SMTP_PASSWORD=email-server-password
EMAIL_FROM=support@yourapp.com

Then, in the directory containing package.json, run your package manager's install command:

yarn install

To preview your changes as you edit the files, you can run a local development server that will serve your website and reflect the latest changes.

yarn dev

By default, a browser window will open at http://localhost:5173.

Build

Quá trình build đã được setup CI CD