In the DDEV project directory launch the command:
ddev get machine-rc/ddev-dotnetRestart the DDEV instance:
ddev restartAccess .NET application on defined port (or 8080 default) via the url: https://your-project-name.ddev.site:8080/
-
Clone the repository:
git clone git@github.com:machine-rc/ddev-dotnet.git cd ddev-dotnet -
Navigate to the project directory:
cd apis/Users.API -
Restore the .NET dependencies:
dotnet restore
-
Build the project:
dotnet build
- To run the project locally, use the following command:
dotnet run
- Open your browser and navigate to
http://localhost:8080orhttp://localhost:8081.
The project includes a Dockerfile to build a Docker image for the service.
Current structure allows support for multiple graphql services. To add a new service:
- create a new directory in the
dotnetdirectory with the service name - copy the
Dockerfilefrom thedotnet/Users.APIdirectory - adjust
docker-compose.dotnet.yamlto include the new service by duplicating thedotnet-usersservice and changing the service name- adjust the
environmentsection to expose the new service on a different port
- adjust the