Skip to content

ERNICommunity/ERNI-Photo-Database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERNI-Photo-Database

⚠️ REPOSITORY NOT ACTIVE SINCE 2019 Dependabot alerts in git security settings disabled

badge

Development

After cloning the solution, you need to configure the SQL server connection string to use for development and enable the Azure Storage Emulator.

Storing user secrets (SQL Server and BLOB storage connection strings, azure AD configuration)

The application is able to take its necessary configuration values from user secrets. For development, you need to add your own user secret for the application pick it up.

Setting the user secrets from Visual Studio:

  1. Open Solution explorer and right-click the ERNI.PhotoDatabase.Server project
  2. In the context menu, select Manage user secrets
  3. Put the following as the content of the file that opens:
{
  "ConnectionStrings": {
    "Database": "your-sql-server-connection-string",
	"BlobStorage": "your-blob-storage-connection-string"
  },
  "Authentication": {
    "AzureAd": {
      "AADInstance": "your-aad-instance",
      "ClientId": "your-client-id",
      "Domain": "your-domain",
      "TenantId": "your-tenant-id"
    }
  }
}

Setting the connection string from VS code (or other editor)

  1. Open a command prompt and change your wowking directory to the folder server\ERNI.PhotoDatabase.Server
  2. Run dotnet restore (this will install the user secrets CLI tool)
  3. Run dotnet user-secrets set ConnectionStrings.Database your-sql-server-connection-string

Azure Storage Emulator

The application uses Azure blob storage to store images. For development, we use Azure Storage Emulator to develop locally.

Install the emulator from here. There is also a Linux variand linked in that article.

Follow the instructions in the linked article to see how to initialize and start the emulator. Once the emulator is successfully started, the application will be ready to run locally.

About

Photo database implemented for internal purposes, learning and fun

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published