1.2.0 • Published 10 months ago

@evershop/s3_file_storage v1.2.0

Weekly downloads
-
License
GNU GENERAL PUBLI...
Repository
github
Last release
10 months ago

AWS S3 storage extension for EverShop

This extension allows you to store your EverShop files including product images, banners on AWS S3.

Note: This extension requires EverShop version 1.0.0-rc.9 or higher.

Installation guide

Step 1: Install the extension using npm:

npm install @evershop/s3_file_storage

Step 2: Enable the extension

Edit the config/default.json file in the root directory of your EverShop installation and add the following line to the extensions section:

{
  ...,
  "system": {
    ...,
    "extensions": [
      ...,
      {
        "name": "s3_file_storage",
        "resolve": "node_modules/@evershop/s3_file_storage",
        "enabled": true,
        "priority": 10
      }
    ]
  }
}

Step 3: Add the S3 storage connection information to the environment variables

Edit the .env file:

AWS_ACCESS_KEY_ID="<Your access key>"
AWS_SECRET_ACCESS_KEY="<Your secret access key>"
AWS_REGION="<Your region>"
AWS_BUCKET_NAME="<Your bucket name>"

Step 4: Active the AWS S3 storage

Edit the config/default.json file in the root directory of your EverShop installation and add the following line to the file_storage section:

{
  ...,
  "system": {
    ...,
    "file_storage": "s3"
  }
}

Step 5: Run the build command

npm run build
1.2.0

10 months ago

1.1.0

1 year ago

1.0.0

2 years ago