Build and Run the application
The API generated consists of configuration to be run locally or on a docker container.
Build and run locally
Move to the
<PROJECT-NAME>/src/api folder and run the next commands in Command Prompt or Powershell
Build and run in docker container
<PROJECT-NAME>/src/api folder, build a Docker image using e.g. the command below:
This uses the Dockerfile in this folder to generate the Docker image.
After the creation of the Docker image, the Docker container can be run using the command below:
The COSMOSDB_KEY described in the command above has to be passed when running the container. SERVICEBUS_CONNECTIONSTRING OR EVENTHUB_CONNECTIONSTRING and STORAGE_CONNECTIONSTRING are needed based on the configuration and message service you'll be using. Note that the appsettings.json value is mounted here for running locally, but not if the full project is deployed to Azure, where the build process will perform the substitution.