Skip to content

thalissoncastrog/dotnet-api

Repository files navigation


Markdownify
.NET Minimal API Template

A minimal Web API to make available a template for future projects.

How To UseLicense

Markdownify

How To Use

To clone and run this application, you'll need Git and .NET installed on your computer. From your command line:

# Clone this repository
$ git clone https://github.com/thalissoncastrog/dotnet-api.git

# Go into the repository
$ cd dotnet-api

# Install dependencies
$ dotnet restore

# Run the app
$ dotnet run

Note After run each command above, go to a web browser and access this url: http://localhost:[port]/swagger.

- For a better experience, use Docker:

Note: Install docker according your operating system Docker Instalation.

# Clone this repository
$ git clone https://github.com/thalissoncastrog/dotnet-api.git

# Go into the repository
$ cd dotnet-api

# Do the next commands as root user
$ sudo su

# Create a docker image from Dockerfile
$ docker build -t api-minimal-dotnet:1.0.0 .

# Create a container from the image created before
$ docker run -d -p 8080:8080 api-minimal-dotnet:1.0.0

Note After run each command above, go to a web browser and access this url: http://localhost:8080/swagger.

License

MIT


Instagram @thalissoncastrog  ·  GitHub @thalissoncastrog  ·  Email [email protected]

About

Minimal .NET Web API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published