
.NET ddev Add-on
Getting started
In the DDEV project directory launch the command:
ddev get machine-rc/ddev-dotnet
Restart the DDEV instance:
Access .NET application on defined port (or 8080
default) via the url: https://your-project-name.ddev.site:8080/
Setup Instructions
Installation
- Clone the repository:
- Navigate to the project directory:
- Restore the .NET dependencies:
- Build the project:
Running the Project Locally
- To run the project locally, use the following command:
- Open your browser and navigate to
http://localhost:8080
or http://localhost:8081
.
Docker Setup
Dockerfile
The project includes a Dockerfile to build a Docker image for the service.
Customizations
Current structure allows support for multiple graphql services.
To add a new service:
- create a new directory in the
dotnet
directory with the service name
- copy the
Dockerfile
from the dotnet/Users.API
directory
- adjust
docker-compose.dotnet.yaml
to include the new service by duplicating the dotnet-users
service and changing the service name
- adjust the
environment
section to expose the new service on a different port