{"repo":"yanpitangui/dotnet-api-boilerplate","free":true,"listed":false,"github":"https://github.com/yanpitangui/dotnet-api-boilerplate","clone":"git clone https://github.com/yanpitangui/dotnet-api-boilerplate.git","description":"A Dotnet 9.0 WebApi template project. MediatR, Swagger, Mapper, Serilog and more implemented.","language":"C#","stars":594,"topics":["boilerplate","api","swagger","ef-core","architecture","github-template","serilog","docker","webapi-boilerplate","application-swagger"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"dotnet-api-boilerplate English Português A .Net 9.0 WebApi boilerplate / template project. MediatR, Swagger, AutoMapper Mapster, Serilog and more implemented. The goal of this project is to be a kickstart to your .Net WebApi, implementing the most common used patterns and technologies for a restful API in .net, making your work easier. How to run - Use this template(github) or clone/download to your local workplace. - Download the latest .Net SDK and Visual Studio/Code/Rider. Standalone 1. You may need a running instance of Postgres, with appropriate migrations initialized. - You can run just the DB on docker. For that, run the following command: docker-compose up -d db-server . Doing that, the application will be able to reach the container of the db server. 2. Go to the src/Boilerplate.Api folder and run dotnet run , or, in visual studio set the api project as startup and run as console/docker/IIS. 3. Visit http://localhost:7122/api-docs or https://localhost:7123/api-docs to access the application's swagger. Docker 1. Run docker-compose up -d in the root directory, or, in visual studio, set the docker-compose project as startup and run. This should start the application and DB. - 1. For docker-compose, you should run this command on the root folder: dotnet dev-certs https -ep https/aspnetapp.pfx -p yourpassword Replace \"yourpassword\" with something else in this command and the docker-compose.override.yml file. This creates the https certificate. 2. Visit http://localhost:71","default_branch":null,"files":null,"tree":[],"storefront":"/r/yanpitangui","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yanpitangui/dotnet-api-boilerplate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}