Giter Club home page Giter Club logo

CFP Exchange logo CFP.Exchange Build CfpExchange

An online community website used to share interesting call for papers with speakers.

This website is built using ASP.NET Core 3.1 and hosted on Azure: https://cfp.exchange.

Connectionstrings and other secrets

This project uses a number of secrets to connect to various APIs and databases. For this we use the ASP.NET Core user secrets.

To enter the connectionstring for your development database, use the following steps:

On Windows

Create a file in %APPDATA%\microsoft\UserSecrets\CfpExchangeSecrets\secrets.json and paste in the example below - then update it with your own secret values!

On Mac or Linux

Create a file in ~/.microsoft/usersecrets/CfpExchangeSecrets/secrets.json and paste in the example below - then update it with your own secret values!

User Secrets example

The file should have the following layout:

{
    "TwitterConsumerKey": "key",
    "TwitterConsumerSecret": "secret",
    "TwitterOAuthToken": "token",
    "TwitterOAuthTokenSecret": "tokensecret",
    "AdminEmailaddress": "[email protected]",
    "EmailSettings": {
        "ApiKey": "MailGunApiKey",
        "ApiUri": "https://api.mailgun.net/v3/yourdomain.com/messages",
        "From": "No-Reply CFP Exchange <[email protected]>"
    },
    "MapsApiKey": "key",
    "ConnectionStrings": {
        "CfpExchangeDb":  "ConnectionStringToTheCfpExchangeDatabase" 
    },
    "UrlPreviewApiKey": "key",
    "FeatureToggle": {
        "HostOwnImages": true
    },
    "ServicebusConnectionString": "ConnectionStringToSendToTheServiceBusQueues"
}
  • MapsApiKey is an API key for the Azure Maps service
  • UrlPreviewApiKey is the Azure Cognitive Services URL Preview key (experimental) functionality for this is implemented but not currently used.

Azure Functions settings

In order to run the Azure Functions project, you need to create a file called local.settings.json in the root directory of this project.

The contents should look like the following:

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "AzureWebJobsDashboard": "UseDevelopmentStorage=true",
    "ServicebusQueueConnectionString": "ConnectionStringToTheServiceBusQueue",
    "StorageAccountName": "ConnectionStringToTheBlobStorageAccount",
    "CfpExchangeDb": "ConnectionStringToTheCfpExchangeDatabase"
  }
}

All of these settings can be found within the Azure Portal once your environment is deployed to Azure via the ARM template.

CfpExchange's Projects

cfpexchange icon cfpexchange

An online community website used to share interesting call for papers with speakers.

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.