GithubHelp home page GithubHelp logo

cuba-azure-file-storage's Introduction

license

CUBA Azure File Storage Add-on

This add-on enables using Azure Storage Blob as File Storage.

Installation

This add-on's repository is officially linked to the main CUBA repository, so you can install it from the Marketplace or by adding the repository manually to your project.

The following table shows which version of the add-on is compatible with which version of the platform:

Platform Version Add-on Version Coordinates
7.2.* 1.0.0 gr.netmechanics.cuba.afs:cubaafs-global:1.0.0
7.2.* 1.0.1 gr.netmechanics.cuba.afs:cubaafs-global:1.0.1
7.2.* 1.1.0 gr.netmechanics.cuba.afs:cubaafs-global:1.1.0

The latest stable version is: 1.1.0

From Marketplace

You can use CUBA Studio / IntelliJ IDEA to add it to your project: choose the CUBA -> Marketplace... menu item, find the Azure File Storage add-on, then click on the Install button.

Adding the repository manually

Modify the build.gradle of your CUBA application. First add the repository https://dl.bintray.com/netmechanics/cuba-components to the buildscript.

buildscript {
    ...
    repositories {
        ...
        maven {
            url 'https://dl.bintray.com/netmechanics/cuba-components'
        }
        ...
    }
    ...
}
...

Then select the version of the add-on which is compatible with the platform version of your project and add custom application component to your project

...
dependencies {
    ...
    appComponent('gr.netmechanics.cuba.afs:cubaafs-global:1.1.0')
    ...
}
...

Configuration

  1. To add Azure File Storage support, you need to register AzureFileStorage class in the spring.xml file in the core module:
    <bean name="cuba_FileStorage" class="gr.netmechanics.cuba.afs.blob.AzureFileStorage"/>
  1. Next, you should define your Azure Storage settings in the app.properties file in the core module:
  • cuba.azure.storage.connectionString - Azure Storage Connection string.

  • cuba.azure.storage.containerName - Azure Storage Blob Container name.

Example:

cuba.azure.storage.connectionString = DefaultEndpointsProtocol=https;AccountName=myAccount;AccountKey=1WE6oxxWosQ745ClyQP/tfRT1H6zGoDKo8FOOtnVFZ3rkPZy+8J71f9vGcGgcQKXWCsA2iER5Pmnop0wBuU3Gg==;EndpointSuffix=core.windows.net
cuba.azure.storage.containerName = myfiles

cuba-azure-file-storage's People

Contributors

pbaris avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.