GithubHelp home page GithubHelp logo

asset-mgr-back's Introduction

Cognitive Asset manager - backend - Project 82038

Manage assets and models built from assets for Cognitive Services

Post-hackathon update

This project has been separated out into a streaming upload server and triggered Azure functions. The streaming server has been moved to a separate repo.

Getting started

  1. Fork and clone project

  2. Copy env.sample and rename to .env.

  3. Create Azure resources

    1. Speech
    2. Translator
    3. Storage
  4. Fill in values in .env:

    Variable Purpose
    SPEECHRESOURCETOKENHOST westus.api.cognitive.microsoft.com - Token server. TBD - fix when fixing custom endpoints across Cognitive Services.
    SPEECHRESOURCETTSHOST westus.tts.speech.microsoft.com - TBD - fix when fixing custom endpoints across Cognitive Services.
    SPEECHKEY Cognitive Services Speech key
    DFBAPISERVERVER 0.1 - versioning of node.js server app
    DFBAPISERVERPORT 3005 - Local node.js server port.
    DFBAPIUPLOADSERVERDIR upload - Local directory where files are uploaded to.
    DFBAPIDOWNLOADSERVERDIR out - Local directory to store downloadable files. TBD - Move to Azure files.
    DFBAPIDOWNLOADSERVERURI localhost - Host used for download URIs.
    DFBAPIDOWNLOADSERVERPORT 3010 - Port used for download URIs. Create MP3 from text then return download URI.
    TRANSLATORKEY Cognitive Services Translator key, currently hardcoded to westus region.
    AZSTORAGECONNECTIONSTRING Azure storage connection string
    AZSTORAGECONTAINER containercogservblob Your custom name for container in Azure Storage
    SECRET String used to create user authentication token
  5. npm start to run server or npm test to run Jest tests.

  6. Deploy to Azure web app from local Git. Instructions to redeploy from CLI.

Main URL

Deploy to Azure

Following instructions.

Create user

Do this once, at the beginning, for each local computer you develop with.

  1. Create user for local git:

    az webapp deployment source config-local-git --name <app-name> --resource-group <group-name>
    
  2. Get credentials

    az webapp deployment list-publishing-credentials --name <app-name> --resource-group <group-name> --query scmUri --output tsv
    
  3. Use URL from response, create remote link for git

    git remote add azure <url>
    

Deploy project to azure via local Git command

  1. Deploy to azure.

    git push azure master
    

asset-mgr-back's People

Contributors

diberry 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.