Build and Run the application
The API generated consists of configuration to be ran 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. 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.